From b32958c42e28d78f806b62fd2d533ee80d7c3976 Mon Sep 17 00:00:00 2001 From: Caleb Fender <206287090+calebfender@users.noreply.github.com> Date: Mon, 16 Nov 2026 23:10:26 -0800 Subject: [PATCH] Run CI on the Mac mini and forge instead of GitHub's runners --- .github/workflows/ci.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4141a5..65309d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,18 +7,23 @@ jobs: build: strategy: matrix: - os: [macos-latest, ubuntu-latest] - runs-on: ${{ matrix.os }} + # Our own machines, through local-ci (calebfender/local-ci). + os: [macmini, forge] + runs-on: [self-hosted, "${{ matrix.os }}"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 + # forge's job containers start without Rust; the Mac mini already has it. + - uses: dtolnay/rust-toolchain@stable + if: matrix.os == 'forge' - run: cargo build --release - name: Smoke test run: | ./target/release/monitor --version - ./target/release/monitor --port 8620 --dir "$RUNNER_TEMP/mon" & + # Not 8620: the Mac mini's own monitor is listening there. + ./target/release/monitor --port 18620 --dir "$RUNNER_TEMP/mon" & sleep 5 - curl -fsS http://127.0.0.1:8620/api/live | python3 -c 'import json,sys; assert json.load(sys.stdin)["now"]' - curl -fsS http://127.0.0.1:8620/api/info >/dev/null - curl -fsS http://127.0.0.1:8620/ | grep -q '