summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Stolle <striezel-dev@web.de>2023-12-30 00:40:17 +0100
committerJack O'Connor <oconnor663@gmail.com>2023-12-30 02:28:33 -0500
commit4d32708f511fd85c6b0fb131295cc73224246738 (patch)
treec28342675874eb251cfe56c941308c0eb6c14381
parent5306464d031f70676194497a2009af1416be41df (diff)
replace unmaintained actions-rs/toolchain action in CI
Basically all of the `actions-rs/*` actions are unmaintained. See <https://github.com/actions-rs/toolchain/issues/216> for more information. Due to their age they generate several warnings in CI runs. To get rid of those warnings the occurrences of `actions-rs/toolchain` are replaced by `dtolnay/rust-toolchain`.
-rw-r--r--.github/workflows/ci.yml19
-rw-r--r--.github/workflows/tag.yml6
2 files changed, 7 insertions, 18 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 83accaa..3ff1199 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -39,11 +39,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ format('{0}-{1}', matrix.channel, matrix.target.toolchain) }}
- profile: minimal
- override: true
# Print the compiler version, for debugging.
- name: print compiler version
run: cargo run --quiet
@@ -157,11 +155,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ format('{0}-{1}', matrix.channel, matrix.target.toolchain) }}
- profile: minimal
- override: true
# Test b3sum.
- name: test b3sum
run: cargo test
@@ -187,10 +183,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ - uses: dtolnay/rust-toolchain@stable
- run: cargo install cross
# Test the portable implementation on everything.
- run: cross test --target ${{ matrix.arch }}
@@ -269,11 +262,9 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@stable
with:
- toolchain: stable
- target: aarch64-apple-darwin
- override: true
+ targets: aarch64-apple-darwin
- name: build blake3
run: cargo build --target aarch64-apple-darwin
- name: build b3sum
diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml
index 867c421..61be4ff 100644
--- a/.github/workflows/tag.yml
+++ b/.github/workflows/tag.yml
@@ -30,11 +30,9 @@ jobs:
- run: pip install PyGithub
- run: sudo apt-get install musl-tools
if: matrix.target.os == 'ubuntu-latest'
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@stable
with:
- toolchain: stable
- profile: minimal
- - run: rustup target add ${{ matrix.target.rust-target }}
+ targets: ${{ matrix.target.rust-target }}
- name: build b3sum
id: build_b3sum
run: python -u .github/workflows/build_b3sum.py ${{ matrix.target.rust-target }}