From f9ff4152bf58b7ceb009a84393d9d2e9765623d2 Mon Sep 17 00:00:00 2001 From: Iain Date: Fri, 28 Aug 2026 17:13:35 +1000 Subject: [PATCH 1/2] Add repository runner CI --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1064550 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + name: Build and test + runs-on: ${{ fromJSON(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork && '["ubuntu-latest"]' || '["self-hosted","linux","x64","wan0-ci","thistle-tk"]') }} + steps: + - uses: actions/checkout@v6 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Cache Rust builds + uses: Swatinem/rust-cache@v2 + with: + workspaces: | + . -> target + compiler -> target + + - name: Test toolkit + run: cargo test --locked --all-targets + + - name: Test compiler units + run: cargo test --manifest-path compiler/Cargo.toml --locked --lib --bins From 687998ebd0865f4eca1736e822b7ad6d5bc7b971 Mon Sep 17 00:00:00 2001 From: Iain Date: Fri, 28 Aug 2026 17:28:01 +1000 Subject: [PATCH 2/2] Install ThistleTK native build dependencies --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1064550..944cfbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,11 @@ jobs: steps: - uses: actions/checkout@v6 + - name: Install native build dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential libsdl2-dev pkg-config + - name: Install Rust uses: dtolnay/rust-toolchain@stable