diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 0313596b..415d0d24 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -31,14 +31,18 @@ jobs: # The configured Gitea ubuntu-latest label runs a root node:24-bookworm job container; # sudo is not installed there, so install packages directly. - name: Install build tools - run: apt-get update && apt-get install -y cmake ninja-build g++ python3-numpy + run: apt-get update && apt-get install -y ca-certificates curl cmake ninja-build g++ python3-numpy - name: Install pinned Rust - run: rustup toolchain install 1.99.0 --profile minimal --component rustfmt --component clippy + 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 - name: Local checks run: scripts/check-local.sh keyless-cuda: - if: github.event_name == 'workflow_dispatch' && inputs.keyless_gpu + if: github.event_name == 'workflow_dispatch' && github.event.inputs.keyless_gpu == 'true' runs-on: [self-hosted, linux, x64, strata-gpu] steps: - uses: actions/checkout@v4 @@ -61,6 +65,9 @@ jobs: run: nice -n 10 scripts/build-static-cuda.sh - 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 command -v musl-gcc @@ -119,7 +126,7 @@ jobs: echo "CUDACXX=$RUNNER_TEMP/strata-cuda-toolkit/bin/nvcc" >> "$GITHUB_ENV" echo "CUDAToolkit_ROOT=$RUNNER_TEMP/strata-cuda-toolkit" >> "$GITHUB_ENV" echo "STRATA_BUILD_DIR=$RUNNER_TEMP/strata-hosted-cuda-engine" >> "$GITHUB_ENV" - apt-get update && apt-get install -y gcc-13 g++-13 cmake ninja-build musl-tools binutils + apt-get update && apt-get install -y ca-certificates curl gcc-13 g++-13 cmake ninja-build musl-tools binutils - name: Assemble pinned build-only CUDA components run: python3 scripts/bootstrap-cuda-toolkit.py --output "$CUDAToolkit_ROOT" - name: Record actual toolchain @@ -146,6 +153,9 @@ jobs: run: scripts/build-static-cuda.sh - 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 - name: Assemble actual combined executable and runtime image @@ -197,9 +207,12 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install musl toolchain - run: apt-get update && apt-get install -y musl-tools cmake binutils python3-numpy + run: apt-get update && apt-get install -y ca-certificates curl 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 - name: Build static CLI