Skip to content

Commit

Permalink
Merge pull request #488 from madsmtm/update-rust-toolchain-installer
Browse files Browse the repository at this point in the history
Use `dtolnay/rust-toolchain` instead of `actions-rs/toolchain`
  • Loading branch information
madsmtm authored Aug 27, 2023
2 parents 00fdc91 + e976d99 commit dd5bec7
Showing 1 changed file with 12 additions and 28 deletions.
40 changes: 12 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,11 @@ jobs:
submodules: true

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.CURRENT_NIGHTLY }}
profile: minimal
override: true
components: clippy ${{ matrix.build-std && ', rust-src' || '' }}
target: ${{ (!matrix.build-std) && matrix.target || null }}
targets: ${{ (!matrix.build-std) && matrix.target || null }}

- name: Cache Cargo
uses: actions/cache@v3
Expand All @@ -165,12 +163,10 @@ jobs:
submodules: true

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: '1.60'
profile: minimal
override: true
target: x86_64-apple-darwin
targets: x86_64-apple-darwin

- name: Cache Cargo
uses: actions/cache@v3
Expand Down Expand Up @@ -198,11 +194,9 @@ jobs:
submodules: true

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.CURRENT_NIGHTLY }}
profile: minimal
override: true
components: rust-src

- name: Cache Cargo
Expand All @@ -227,11 +221,9 @@ jobs:
submodules: true

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.CURRENT_NIGHTLY }}
profile: minimal
override: true
components: rust-src

- name: Install remaining targets
Expand Down Expand Up @@ -334,11 +326,9 @@ jobs:
submodules: true

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
override: true

- name: Cache Cargo
uses: actions/cache@v3
Expand Down Expand Up @@ -424,11 +414,9 @@ jobs:
submodules: true

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.nightly && env.CURRENT_NIGHTLY || 'stable' }}
profile: minimal
override: true
components: ${{ matrix.build-std && 'rust-src' }}
target: ${{ (!matrix.build-std) && matrix.target || null }}

Expand Down Expand Up @@ -514,12 +502,10 @@ jobs:
submodules: true

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
override: true
target: x86_64-apple-ios
targets: x86_64-apple-ios

- name: Cache Cargo
uses: actions/cache@v3
Expand Down Expand Up @@ -714,12 +700,10 @@ jobs:
ls -al $HOME/extern/*
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.nightly && env.CURRENT_NIGHTLY || 'stable' }}
profile: minimal
override: true
target: ${{ matrix.target }}
targets: ${{ matrix.target }}

- name: Cache Cargo
uses: actions/cache@v3
Expand Down

0 comments on commit dd5bec7

Please sign in to comment.