chore(actions): switch to dtolnay/rust-toolchain action

This commit is contained in:
Orhun Parmaksız 2023-04-03 13:30:20 +03:00
parent 7cea83cf0b
commit ed50ada800
No known key found for this signature in database
GPG key ID: F83424824B3E4B90
2 changed files with 8 additions and 28 deletions

View file

@ -79,12 +79,9 @@ jobs:
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@${{ matrix.TOOLCHAIN }}
with:
toolchain: ${{ matrix.TOOLCHAIN }}
target: ${{ matrix.CONFIG.TARGET }}
profile: minimal
override: true
targets: ${{ matrix.TARGET }}
- name: Build
uses: actions-rs/cargo@v1
@ -92,10 +89,7 @@ jobs:
use-cross: ${{ matrix.CONFIG.FEATURES != '' }}
command: build
args: >
--release
--locked
--target ${{ matrix.CONFIG.TARGET }}
${{ matrix.CONFIG.FEATURES }}
--release --locked --target ${{ matrix.CONFIG.TARGET }} ${{ matrix.CONFIG.FEATURES }}
- name: Prepare release assets
id: assets
@ -161,11 +155,7 @@ jobs:
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
uses: dtolnay/rust-toolchain@stable
- name: Publish the core library
run: |

View file

@ -35,12 +35,9 @@ jobs:
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@${{ matrix.TOOLCHAIN }}
with:
toolchain: ${{ matrix.TOOLCHAIN }}
target: ${{ matrix.TARGET }}
profile: minimal
override: true
targets: ${{ matrix.TARGET }}
- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2
@ -71,11 +68,7 @@ jobs:
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable
- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2
@ -132,11 +125,8 @@ jobs:
SHELLCHECK_OPTS: -e SC2086
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Check formatting