Skip to content

Commit

Permalink
chore: use rustup directly
Browse files Browse the repository at this point in the history
  • Loading branch information
vmx committed Oct 18, 2023
1 parent bc631a0 commit 99ed0d3
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 99ed0d3

Please sign in to comment.