Skip to content

Commit

Permalink
Replace actions-rs/toolchain with dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
The whole actions-rs org is abandoned
actions-rs/toolchain#216
  • Loading branch information
randombit committed Jan 30, 2023
1 parent f85a58e commit eaae0de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ if [ "x$FEATURES" == "xbotan3" ]; then
cd ..
fi

rustc --version

if [ "x$FEATURES" = "x" ]; then
cargo build
cargo test
Expand Down
34 changes: 8 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
profile: minimal
components: rustfmt

- uses: actions/checkout@v3
Expand All @@ -24,10 +23,9 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
profile: minimal
components: clippy

- uses: actions/checkout@v3
Expand All @@ -42,25 +40,16 @@ jobs:
matrix:
include:
- toolchain: stable
target: x86_64-unknown-linux-gnu
- toolchain: stable
features: no-std
target: x86_64-unknown-linux-gnu
- toolchain: stable
features: botan3
target: x86_64-unknown-linux-gnu
cache_id: botan3
- toolchain: stable
features: vendored
target: x86_64-unknown-linux-gnu
cache_id: vendored
- toolchain: 1.64.0 # MSRV
target: x86_64-unknown-linux-gnu
- toolchain: nightly
target: x86_64-unknown-linux-gnu
- toolchain: nightly
features: no-std
target: x86_64-unknown-linux-gnu

steps:
- run: sudo apt-get -qq install ccache libbotan-2-dev
Expand All @@ -70,12 +59,11 @@ jobs:
path: |
~/.cache/ccache
~/.cargo
key: ${{ matrix.target }}-${{ matrix.toolchain }}-${{ matrix.cache_id }}-${{ github.run_id }}
key: ${{ matrix.toolchain }}-${{ matrix.features }}-${{ github.run_id }}
restore-keys: |
${{ matrix.target }}-${{ matrix.toolchain }}-${{ matrix.cache_id }}
- uses: actions-rs/toolchain@v1
${{ matrix.toolchain }}-${{ matrix.features }}
- uses: dtolnay/rust-toolchain@master
with:
override: true
target: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}
- run: ./.ci/build.sh ${{ matrix.features }}
Expand All @@ -89,13 +77,9 @@ jobs:
matrix:
include:
- toolchain: stable
target: x86_64-apple-darwin
- toolchain: stable
features: vendored
target: x86_64-apple-darwin
cache_id: vendored
- toolchain: nightly
target: x86_64-apple-darwin

steps:
- run: brew install ccache botan
Expand All @@ -105,12 +89,10 @@ jobs:
path: |
/Users/runner/Library/Caches/ccache
~/.cargo
key: ${{ matrix.target }}-${{ matrix.toolchain }}-${{ matrix.cache_id }}-${{ github.run_id }}
key: ${{ matrix.toolchain }}-${{ matrix.features }}-${{ github.run_id }}
restore-keys: |
${{ matrix.target }}-${{ matrix.toolchain }}-${{ matrix.cache_id }}
- uses: actions-rs/toolchain@v1
${{ matrix.toolchain }}-${{ matrix.features }}
- uses: dtolnay/rust-toolchain@master
with:
override: true
target: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}
- run: ./.ci/build.sh ${{ matrix.features }}

0 comments on commit eaae0de

Please sign in to comment.