dymokomi/luced
Source of release 0.4.1
0.4.1 / .github / workflows / correctness.yml
name: Correctness
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
editor:
name: Editor (${{ matrix.host }})
runs-on: ${{ matrix.runner }}
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
include:
- runner: macos-15
host: macOS
- runner: ubuntu-24.04
host: Linux
- runner: windows-2025
host: Windows
steps:
- uses: actions/checkout@v7
with:
path: luced
- uses: actions/checkout@v7
with:
repository: dymokomi/luce-base
path: luce-base
# every dependency at main, beside this checkout (luce-base docs/CI.md)
- name: Check out dependencies at main
shell: bash
working-directory: ${{ github.workspace }}
run: |
python3 luce-base/tools/checkout_main.py luced luce
- uses: msys2/setup-msys2@v2
if: runner.os == 'Windows'
with:
msystem: UCRT64
update: true
install: >-
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-python
mingw-w64-ucrt-x86_64-vulkan-devel
mingw-w64-ucrt-x86_64-vulkan-loader
- name: Configure native library search
if: runner.os == 'Windows'
shell: msys2 {0}
run: echo "LIBRARY_PATH=$(cygpath -m /ucrt64/lib)" >> "$GITHUB_ENV"
- name: Verify Vulkan loader
if: runner.os == 'Windows'
shell: msys2 {0}
run: |
test -f /ucrt64/lib/libvulkan-1.dll.a
test "$(gcc -print-file-name=libvulkan-1.dll.a)" != "libvulkan-1.dll.a"
- name: Install Linux font backend
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libcairo2-dev fonts-dejavu-core
- name: Build native compilers
if: runner.os != 'Windows'
shell: bash
run: |
(cd luce-base && CC=clang ./build.sh)
(cd luce && LUCE_BASE_COMPILER=../luce-base/build/luce-base ./build.sh)
- name: Build native compilers on Windows
if: runner.os == 'Windows'
shell: msys2 {0}
env:
CC: gcc
run: |
(cd luce-base && python tools/build_windows.py)
(cd luce && python tools/build_windows.py)
- name: Build and test editor behavior
if: runner.os != 'Windows'
shell: bash
working-directory: luced
run: |
python3 tools/build.py
python3 tests/run.py
- name: Build and test editor behavior on Windows
if: runner.os == 'Windows'
shell: msys2 {0}
working-directory: luced
env:
CC: gcc
run: |
python3 tools/build.py
python3 tests/run.py
- name: Inspect actual Metal output
if: runner.os == 'macOS'
shell: bash
working-directory: luced
run: |
python3 tools/preview.py --source examples/hello/main.luc
python3 tools/preview.py --source src/editor/views.luc --fold --output build/preview-folded.ppm
python3 tools/preview.py --source src/editor/views.luc --palette --output build/preview-palette.ppm
python3 tools/preview.py --source src/editor/views.luc --context files --output build/preview-context.ppm
python3 tools/preview.py --source src/editor/views.luc --hover edit-menu --output build/preview-menu-hover.ppm
python3 tools/preview.py --source src/editor/views.luc --hover gutter --output build/preview-gutter-hover.ppm
python3 tools/preview.py --source src/editor/views.luc --dock preview --output build/preview-docking.ppm
python3 tools/preview.py --tabs --dock merge --output build/preview-tabs.ppm
- name: Keep native preview
if: runner.os == 'macOS'
uses: actions/upload-artifact@v7
with:
name: luced-metal-preview
path: luced/build/preview*.ppm