dymokomi/luc
Source of release 0.24.0
0.24.0 / .github / workflows / correctness.yml
name: Correctness
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
gate:
name: Gate (${{ matrix.host }})
runs-on: ${{ matrix.runner }}
# Three architectures each run six compiler modes plus a generated-C
# sanitizer matrix with native ML-DSA/Argon2 tests. Hosted macOS ARM64 is
# materially slower than either Linux runner for this matrix; keep the
# complete assertions and give each architecture its measured allowance.
timeout-minutes: ${{ matrix.timeout }}
strategy:
fail-fast: false
matrix:
include:
- { runner: macos-15, host: arm64-macos, timeout: 120 }
- { runner: ubuntu-24.04, host: x86_64-linux, timeout: 75 }
- { runner: ubuntu-24.04-arm, host: arm64-linux, timeout: 75 }
defaults:
run:
shell: bash
working-directory: luce-luc
env:
CC: clang
steps:
- uses: actions/checkout@v7
with:
path: luce-luc
# luce-base, luce and every package luc depends on, at main (luce-base docs/CI.md)
- name: Check out dependencies at main
run: |
git clone -q --depth 1 https://github.com/dymokomi/luce-base.git ../luce-base
python3 ../luce-base/tools/checkout_main.py . ../luce
- name: Build the Base and Luce compilers
run: |
(cd ../luce-base && ./build.sh)
(cd ../luce && ./build.sh)
- name: Select Clang for generated C
run: |
mkdir -p "$RUNNER_TEMP/luce-bin"
ln -s "$(command -v clang)" "$RUNNER_TEMP/luce-bin/cc"
echo "$RUNNER_TEMP/luce-bin" >> "$GITHUB_PATH"
- name: Run the gate
run: LUCE_BASE_COMPILER="$PWD/../luce-base/build/luce-base" ./test.sh
- name: Heap-tool process lifecycle regression
run: python3 tests/test_heap_process.py
- name: Release verification modes and sanitizers
run: python3 tests/release_modes.py --base ../luce-base/build/luce-base