diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a49ebab3..b4f2882d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,15 @@ permissions: jobs: lint: - runs-on: ubuntu-latest + runs-on: [self-hosted, node-b, linux, x64] steps: - uses: actions/checkout@v7 + # The self-hosted runner image has no Rust toolchain preinstalled, + # unlike ubuntu-latest. Pinned to match rust-toolchain.toml. + - uses: dtolnay/rust-toolchain@master + with: + toolchain: "1.95.0" + components: clippy,rustfmt - uses: Swatinem/rust-cache@v2 - uses: actions/setup-node@v7 with: @@ -36,9 +42,15 @@ jobs: - run: cargo clippy --workspace --all-features --locked -- -D warnings test: - runs-on: ubuntu-latest + runs-on: [self-hosted, node-b, linux, x64] steps: - uses: actions/checkout@v7 + # The self-hosted runner image has no Rust toolchain preinstalled, + # unlike ubuntu-latest. Pinned to match rust-toolchain.toml. + - uses: dtolnay/rust-toolchain@master + with: + toolchain: "1.95.0" + components: clippy,rustfmt - uses: Swatinem/rust-cache@v2 - uses: actions/setup-node@v7 with: @@ -52,9 +64,15 @@ jobs: - run: cargo test --workspace --all-features --locked build: - runs-on: ubuntu-latest + runs-on: [self-hosted, node-b, linux, x64] steps: - uses: actions/checkout@v7 + # The self-hosted runner image has no Rust toolchain preinstalled, + # unlike ubuntu-latest. Pinned to match rust-toolchain.toml. + - uses: dtolnay/rust-toolchain@master + with: + toolchain: "1.95.0" + components: clippy,rustfmt - uses: Swatinem/rust-cache@v2 - uses: actions/setup-node@v7 with: @@ -68,7 +86,7 @@ jobs: - run: cargo build --workspace --all-features --locked ui: - runs-on: ubuntu-latest + runs-on: [self-hosted, node-b, linux, x64] strategy: matrix: project: [ui, client] @@ -85,7 +103,7 @@ jobs: run: npm run build ui-e2e: - runs-on: ubuntu-latest + runs-on: [self-hosted, node-b, linux, x64] steps: - uses: actions/checkout@v7 - uses: actions/setup-node@v7