Fail fast when runner Rust toolchain is missing
CI / UI Checks (push) Has been cancelled
CI / Frontend E2E (push) Has been cancelled
CI / Deployment Manifests (push) Has been cancelled
CI / Deploy (push) Has been cancelled
CI / Rust Checks (push) Has been cancelled

This commit is contained in:
github-ops
2026-06-24 16:51:00 +00:00
parent 87d9ba2299
commit 327bea6f33
2 changed files with 21 additions and 20 deletions
+14 -13
View File
@@ -11,7 +11,6 @@ env:
CARGO_BUILD_JOBS: "2"
CARGO_INCREMENTAL: "0"
RUST_TEST_THREADS: "2"
RUSTUP_MAX_RETRIES: "3"
TESTCONTAINERS_RYUK_DISABLED: "true"
jobs:
@@ -23,15 +22,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v5
- name: Prepare Rust toolchain
- name: Check Rust toolchain is preinstalled
run: |
rustup --version
rustup toolchain list
timeout 10m rustup toolchain install 1.85.0 \
--profile minimal \
--component clippy \
--component rustfmt \
--no-self-update
rustup toolchain list | grep -F '1.85.0' >/dev/null || {
echo 'Rust 1.85.0 is not installed in the Gitea runner image.' >&2
echo 'Install it on the runner image/host before running CI:' >&2
echo 'rustup toolchain install 1.85.0 --profile minimal --component clippy --component rustfmt' >&2
exit 1
}
rustup component list --toolchain 1.85.0 --installed
- name: Verify runner toolchain
@@ -116,15 +116,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v5
- name: Prepare Rust toolchain
- name: Check Rust toolchain is preinstalled
run: |
rustup --version
rustup toolchain list
timeout 10m rustup toolchain install 1.85.0 \
--profile minimal \
--component clippy \
--component rustfmt \
--no-self-update
rustup toolchain list | grep -F '1.85.0' >/dev/null || {
echo 'Rust 1.85.0 is not installed in the Gitea runner image.' >&2
echo 'Install it on the runner image/host before running CI:' >&2
echo 'rustup toolchain install 1.85.0 --profile minimal --component clippy --component rustfmt' >&2
exit 1
}
rustup component list --toolchain 1.85.0 --installed
- name: Verify runner toolchain
+7 -7
View File
@@ -13,7 +13,6 @@ env:
MCP_SERVER_IMAGE: git.itexp.me/bsodfather/crank-community-mcp-server
UI_IMAGE: git.itexp.me/bsodfather/crank-community-ui
OPENBAO_ENV_FILE: .openbao-env
RUSTUP_MAX_RETRIES: "3"
jobs:
release:
@@ -23,15 +22,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v5
- name: Prepare Rust toolchain
- name: Check Rust toolchain is preinstalled
run: |
rustup --version
rustup toolchain list
timeout 10m rustup toolchain install 1.85.0 \
--profile minimal \
--component clippy \
--component rustfmt \
--no-self-update
rustup toolchain list | grep -F '1.85.0' >/dev/null || {
echo 'Rust 1.85.0 is not installed in the Gitea runner image.' >&2
echo 'Install it on the runner image/host before running CI:' >&2
echo 'rustup toolchain install 1.85.0 --profile minimal --component clippy --component rustfmt' >&2
exit 1
}
rustup component list --toolchain 1.85.0 --installed
- name: Verify runner toolchain