From 250f45e047124a510d94035757ce0fb014bc480b Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 15 Mar 2026 18:40:53 -0400 Subject: [PATCH] Switch GHA workflows from self-hosted runners to GitHub runners Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/rust.yml | 36 ++++++++++++-------------------- .github/workflows/typescript.yml | 6 +++--- 2 files changed, 16 insertions(+), 26 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0440ca290..f60cc7324 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -29,54 +29,44 @@ permissions: contents: read env: - CARGO_TERM_COLOR: always # trigger CI + CARGO_TERM_COLOR: always jobs: fmt: name: Format - runs-on: self-hosted + runs-on: ubuntu-latest steps: - - name: Add cargo bin to PATH - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: persist-credentials: false - clean: false + - uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable - run: cargo fmt --check --all clippy: name: Clippy - runs-on: self-hosted - env: - RUSTC_WRAPPER: sccache - SCCACHE_DIR: /home/bhelmkamp/.cache/sccache + runs-on: ubuntu-latest steps: - - name: Add cargo bin to PATH - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: persist-credentials: false - clean: false + - uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable + - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2 + with: + cache-on-failure: true - run: cargo clippy --workspace -- -D warnings - - name: Show sccache stats - run: sccache --show-stats test: name: Test (Linux) - runs-on: self-hosted - env: - RUSTC_WRAPPER: sccache - SCCACHE_DIR: /home/bhelmkamp/.cache/sccache + runs-on: ubuntu-latest steps: - - name: Add cargo bin to PATH - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: persist-credentials: false - clean: false + - uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable + - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2 + with: + cache-on-failure: true - run: cargo test --workspace - - name: Show sccache stats - run: sccache --show-stats test-macos: name: Test (macOS) diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml index 7f0d27728..3aff100fe 100644 --- a/.github/workflows/typescript.yml +++ b/.github/workflows/typescript.yml @@ -29,7 +29,7 @@ permissions: jobs: typecheck: name: Typecheck - runs-on: self-hosted + runs-on: ubuntu-latest steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: @@ -40,7 +40,7 @@ jobs: test: name: Test - runs-on: self-hosted + runs-on: ubuntu-latest steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: @@ -51,7 +51,7 @@ jobs: build: name: Build - runs-on: self-hosted + runs-on: ubuntu-latest steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: