Fix CI: use the rust-ci runner instead of overriding the docker-labeled runner's container
Some checks failed
CI / test (push) Has been cancelled
CI / test (pull_request) Has been cancelled

The docker-labeled runner's image is node:20-bookworm, needed for the
checkout/cache actions (both Node-based). Overriding it with
container: rust:1-bookworm dropped Node from the image entirely, so
checkout failed with "node: executable file not found in $PATH". The
rust-ci label (see sporah's workflow) points at a custom image with
both Rust and Node preinstalled, avoiding the conflict.
This commit is contained in:
Austin Schaefer 2026-08-18 13:54:09 +02:00
parent f2c10783db
commit 26e9624c23

View file

@ -6,15 +6,12 @@ on:
jobs: jobs:
test: test:
runs-on: docker runs-on: rust-ci
container: rust:1-bookworm
steps: steps:
- name: Checkout - uses: actions/checkout@v4
uses: https://code.forgejo.org/actions/checkout@v4
- name: Cache cargo registry and build artifacts - name: Cache cargo registry and build artifacts
uses: https://code.forgejo.org/actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: |
~/.cargo/registry ~/.cargo/registry
@ -24,9 +21,6 @@ jobs:
restore-keys: | restore-keys: |
cargo-${{ runner.os }}- cargo-${{ runner.os }}-
- name: Install rustfmt and clippy
run: rustup component add rustfmt clippy
- name: Check formatting - name: Check formatting
run: cargo fmt -- --check run: cargo fmt -- --check