dymokomi/luce-server
Source of release 0.5.1
0.5.1 / .github / workflows / correctness.yml
name: Correctness
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
native:
name: Native server (${{ matrix.host }})
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- runner: macos-15
host: arm64-macos
- runner: ubuntu-24.04
host: x86_64-linux
steps:
- uses: actions/checkout@v7
with:
path: luce-server
- 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 luce-server
- name: Select Clang
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: Build Base natively
working-directory: luce-base
env:
CC: clang
run: ./build.sh
- name: Test all native optimization levels
working-directory: luce-server
run: |
mkdir -p build
set -o pipefail
./test.sh --base ../luce-base/build/luce-base 2>&1 | tee build/gate.log
- name: Check native heap cleanup
if: runner.os == 'macOS'
working-directory: luce-server
run: |
set -o pipefail
python3 tests/heap.py build/server-0 2>&1 | tee build/heap.log
- name: Retain validation log
if: always()
uses: actions/upload-artifact@v7
with:
name: luce-server-${{ matrix.host }}-${{ github.sha }}
path: |
luce-server/build/gate.log
luce-server/build/heap.log