diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b316c8f4d..d0559afee9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,11 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0 + - name: Add Rustup Target + run: | + rustup set profile minimal + rustup target add ${{ matrix.target }} + - name: Cache Dependencies uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # 2.8.0 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7a7e908b37..c68b2753e2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,11 +40,11 @@ jobs: - name: Checkout Repository uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0 - - name: Install Rust Toolchain - run: rustup toolchain install stable --profile minimal --component clippy --component rustfmt --no-self-update - - - name: Add Target - run: rustup target add ${{ matrix.target }} + - name: Setup Rust Toolchain + run: | + rustup set profile minimal + rustup component add clippy rustfmt + rustup target add ${{ matrix.target }} - name: Install musl-gcc (Linux only) if: matrix.os == 'ubuntu-24.04' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 12c7b5a85d..5270db59c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,8 +41,10 @@ jobs: - name: Checkout Repository uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0 - - name: Add Target - run: rustup target add ${{ matrix.target }} + - name: Setup Rust Toolchain + run: | + rustup set profile minimal + rustup target add ${{ matrix.target }} - name: Install musl-gcc (Linux only) if: matrix.os == 'ubuntu-24.04' diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000000..6697c67365 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,4 @@ +[toolchain] +# We pin the minor version to prevent new Clippy lints from breaking CI. +# But, we still want to pick up new patch versions. +channel = "1.89"