Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-http-server

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:
  native:
    name: Luce application (${{ 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-http-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-http-server luce
      - 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
        run: ./build.sh
      - name: Build Luce natively
        working-directory: luce
        env:
          LUCE_BASE_COMPILER: ../luce-base/build/luce-base
        run: ./build.sh
      - name: Test all native optimization levels
        working-directory: luce-http-server
        run: |
          mkdir -p build
          set -o pipefail
          ./test.sh 2>&1 | tee build/gate.log
      - name: Check native and ARC heap cleanup
        if: runner.os == 'macOS'
        working-directory: luce-http-server
        run: |
          set -o pipefail
          python3 tests/integration.py build/luce-http-server-0 --heap 2>&1 | tee build/heap.log
      - name: Retain validation log
        if: always()
        uses: actions/upload-artifact@v7
        with:
          name: luce-http-server-${{ matrix.host }}-${{ github.sha }}
          path: |
            luce-http-server/build/gate.log
            luce-http-server/build/heap.log