From 99ed0d336f4988120f99a184d62283500f76e14d Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Wed, 18 Oct 2023 14:08:46 +0200 Subject: [PATCH] chore: use rustup directly --- .github/workflows/ci.yml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4cac5d9..5789a4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,12 +79,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.toolchain }} - targets: ${{ matrix.target }} - - name: Make sure the expected toolchain is used - run: rustup override set ${{ matrix.toolchain }} + - name: Install the Rust toolchain + run: | + rustup toolchain install ${{ matrix.toolchain }} --target ${{ matrix.target }} --profile minimal --no-self-update + rustup override set ${{ matrix.toolchain }} - name: Install opencl run: sudo apt-get install -y ocl-icd-opencl-dev - run: ${{ matrix.deps }} @@ -108,12 +106,10 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.toolchain }} - target: x86_64-apple-darwin - - name: Make sure the expected toolchain is used - run: rustup override set ${{ matrix.toolchain }} + - name: Install the Rust toolchain + run: | + rustup toolchain install ${{ matrix.toolchain }} --target x86_64-apple-darwin --profile minimal --no-self-update + rustup override set ${{ matrix.toolchain }} - run: cargo test --no-default-features --features pairing,multicore - run: cargo test --no-default-features --features pairing - run: cargo test --no-default-features --features blst @@ -134,12 +130,10 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.toolchain }} - targets: ${{ matrix.target }} - - name: Make sure the expected toolchain is used - run: rustup override set ${{ matrix.toolchain }} + - name: Install the Rust toolchain + run: | + rustup toolchain install ${{ matrix.toolchain }} --target ${{ matrix.target }} --profile minimal --no-self-update + rustup override set ${{ matrix.toolchain }} - uses: msys2/setup-msys2@v2 - run: cargo test --target ${{ matrix.target }} --no-default-features --features pairing,multicore - run: cargo test --target ${{ matrix.target }} --no-default-features --features pairing