chore: type threading spawn results #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| LJ_RELEASE_RUN_STOCK: "0" | |
| jobs: | |
| linux: | |
| name: Linux x86_64 build/run/archive | |
| runs-on: ubuntu-24.04 | |
| env: | |
| LUA: luajit | |
| CI_ARTIFACT_TAG: ci-${{ github.run_id }}-${{ github.run_attempt }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install build tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| build-essential luajit xz-utils | |
| - name: Build, install, run, and archive | |
| run: | | |
| tools/release/build_artifact.sh \ | |
| linux-x86_64 "$CI_ARTIFACT_TAG" "$PWD/release-artifacts/$CI_ARTIFACT_TAG" | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ci-linux-x86_64 | |
| path: | | |
| release-artifacts/${{ env.CI_ARTIFACT_TAG }}/LuaJITMT-* | |
| release-artifacts/${{ env.CI_ARTIFACT_TAG }}/*.sha256 | |
| macos: | |
| name: macOS x86_64 build/run/archive | |
| runs-on: macos-13 | |
| env: | |
| LUA: luajit | |
| CI_ARTIFACT_TAG: ci-${{ github.run_id }}-${{ github.run_attempt }} | |
| MACOSX_DEPLOYMENT_TARGET: "13.0" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install build tools | |
| run: | | |
| if ! command -v luajit >/dev/null 2>&1; then | |
| brew install luajit | |
| fi | |
| if ! command -v xz >/dev/null 2>&1; then | |
| brew install xz | |
| fi | |
| - name: Build, install, run, and archive | |
| run: | | |
| tools/release/build_artifact.sh \ | |
| macos-x86_64 "$CI_ARTIFACT_TAG" "$PWD/release-artifacts/$CI_ARTIFACT_TAG" | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ci-macos-x86_64 | |
| path: | | |
| release-artifacts/${{ env.CI_ARTIFACT_TAG }}/LuaJITMT-* | |
| release-artifacts/${{ env.CI_ARTIFACT_TAG }}/*.sha256 | |
| windows-ucrt: | |
| name: Windows x86_64 UCRT build/run/archive | |
| runs-on: ubuntu-24.04 | |
| container: debian:trixie | |
| env: | |
| LUA: luajit | |
| CI_ARTIFACT_TAG: ci-${{ github.run_id }}-${{ github.run_attempt }} | |
| steps: | |
| - name: Install build tools | |
| run: | | |
| apt-get update | |
| apt-get install -y --no-install-recommends \ | |
| build-essential ca-certificates file git luajit make unzip xz-utils zip \ | |
| binutils-mingw-w64-ucrt64 gcc-mingw-w64-ucrt64 mingw-w64 \ | |
| wine wine64 | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Build, install, run, and archive | |
| run: | | |
| mkdir -p "$PWD/.ci-home" "$PWD/.wine" | |
| export HOME="$PWD/.ci-home" | |
| export WINEPREFIX="$PWD/.wine" | |
| git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| tools/release/build_artifact.sh \ | |
| windows-x86_64-ucrt "$CI_ARTIFACT_TAG" "$PWD/release-artifacts/$CI_ARTIFACT_TAG" | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ci-windows-x86_64-ucrt | |
| path: | | |
| release-artifacts/${{ env.CI_ARTIFACT_TAG }}/LuaJITMT-* | |
| release-artifacts/${{ env.CI_ARTIFACT_TAG }}/*.sha256 |