Skip to content

Commit

Permalink
ci: Replace unmaintained actions-rs/toolchain action
Browse files Browse the repository at this point in the history
… with dtolnay/rust-toolchain.
  • Loading branch information
jplatte committed Feb 10, 2023
1 parent e430f65 commit a5bfab1
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 112 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: rustfmt
profile: minimal
override: true

- name: Run Benchmarks
run: cargo bench | tee benchmark-output.txt
Expand Down
37 changes: 7 additions & 30 deletions .github/workflows/bindings_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ jobs:

- name: Install rust stable toolchain
if: steps.xtask-cache.outputs.cache-hit != 'true'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Build
if: steps.xtask-cache.outputs.cache-hit != 'true'
Expand All @@ -67,11 +63,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -111,11 +103,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -169,12 +157,9 @@ jobs:
uses: actions/checkout@v3

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -220,11 +205,7 @@ jobs:

- name: Install rust stable toolchain
if: steps.xtask-cache.outputs.cache-hit != 'true'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Build
if: steps.xtask-cache.outputs.cache-hit != 'true'
Expand All @@ -249,11 +230,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

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

- name: Install aarch64-apple-ios target
run: rustup target install aarch64-apple-ios
Expand Down
65 changes: 12 additions & 53 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ jobs:

- name: Install rust stable toolchain
if: steps.xtask-cache.outputs.cache-hit != 'true'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Build
if: steps.xtask-cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -73,11 +69,7 @@ jobs:
uses: actions/checkout@v1

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -108,11 +100,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -143,11 +131,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -198,11 +182,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
uses: dtolnay/rust-toolchain@${{ matrix.rust }}

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -265,13 +245,10 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: wasm32-unknown-unknown
targets: wasm32-unknown-unknown
components: clippy
profile: minimal
override: true

- name: Install wasm-pack
uses: jetli/[email protected]
Expand Down Expand Up @@ -323,11 +300,7 @@ jobs:
uses: actions/checkout@v1

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -357,12 +330,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: rustfmt
profile: minimal
override: true

- name: Cargo fmt
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -398,12 +368,9 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: clippy
profile: minimal
override: true

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -431,11 +398,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -493,11 +456,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Install Node.js
uses: actions/setup-node@v3
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/release-crypto-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,9 @@ jobs:
- uses: actions/checkout@v3
if: "${{ !inputs.tag }}"
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
profile: minimal
target: ${{ matrix.target }}
override: true
targets: ${{ matrix.target }}
- name: Install Node.js
uses: actions/setup-node@v3
- name: Load cache
Expand Down Expand Up @@ -117,11 +114,7 @@ jobs:
- uses: actions/checkout@v3
if: "${{ !inputs.tag }}"
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
uses: dtolnay/rust-toolchain@nightly
- name: Install Node.js
uses: actions/setup-node@v3
- name: Build lib
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release_crypto_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@ jobs:
uses: actions/checkout@v3

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

- name: Load cache
uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit a5bfab1

Please sign in to comment.