fix(ci): verify pinned rustup before executing installer

This commit is contained in:
Pavlo Ratushnyi
2026-10-08 09:01:06 +02:00
parent 881c6b991d
commit ac070fe2fa
2 changed files with 66 additions and 23 deletions
+5 -23
View File
@@ -34,10 +34,7 @@ jobs:
run: apt-get update && apt-get install -y ca-certificates curl cmake ninja-build g++ python3-numpy
- name: Install pinned Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.cargo/bin:$PATH"
rustup toolchain install 1.99.0 --profile minimal --component rustfmt --component clippy
scripts/install-pinned-rustup.sh rustup toolchain install 1.99.0 --profile minimal --component rustfmt --component clippy
- name: Local checks
run: scripts/check-local.sh
@@ -56,10 +53,7 @@ jobs:
run: apt-get update && apt-get install -y ca-certificates curl python3
- name: Install pinned Rust nightly with LLVM coverage tools
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.cargo/bin:$PATH"
rustup toolchain install nightly-2026-10-05 --profile minimal --component llvm-tools-preview
scripts/install-pinned-rustup.sh rustup toolchain install nightly-2026-10-05 --profile minimal --component llvm-tools-preview
- name: Test coverage parser and workflow contract
run: python3 scripts/test-changed-scope-coverage.py
- name: Run exact changed-production coverage gate
@@ -121,11 +115,7 @@ jobs:
--image-tag "${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
- name: Install pinned Rust and musl target
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.cargo/bin:$PATH"
rustup toolchain install 1.99.0 --profile minimal
rustup target add --toolchain 1.99.0 x86_64-unknown-linux-musl
scripts/install-pinned-rustup.sh rustup toolchain install 1.99.0 --profile minimal --target x86_64-unknown-linux-musl
- name: Assemble actual combined executable and runtime image
run: |
# Keep resource evidence even if the hosted runner terminates this job.
@@ -197,11 +187,7 @@ jobs:
run: apt-get update && apt-get install -y ca-certificates curl docker.io musl-tools cmake binutils python3-numpy
- name: Install pinned Rust and target
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.cargo/bin:$PATH"
rustup toolchain install 1.99.0 --profile minimal
rustup target add --toolchain 1.99.0 x86_64-unknown-linux-musl
scripts/install-pinned-rustup.sh rustup toolchain install 1.99.0 --profile minimal --target x86_64-unknown-linux-musl
- name: Build static CLI
run: cargo build --manifest-path control-plane/Cargo.toml --locked --release --target x86_64-unknown-linux-musl --bin strata-next
- name: Verify ELF and checksum
@@ -383,11 +369,7 @@ jobs:
run: apt-get update && apt-get install -y ca-certificates curl gh musl-tools cmake binutils python3-numpy
- name: Install pinned Rust and target
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.cargo/bin:$PATH"
rustup toolchain install 1.99.0 --profile minimal
rustup target add --toolchain 1.99.0 x86_64-unknown-linux-musl
scripts/install-pinned-rustup.sh rustup toolchain install 1.99.0 --profile minimal --target x86_64-unknown-linux-musl
- name: Rebuild release CLI assets on the tag commit
run: |
cargo build --manifest-path control-plane/Cargo.toml --locked --release --target x86_64-unknown-linux-musl --bin strata-next