mirror of
https://github.com/orhun/systeroid
synced 2024-10-02 21:53:31 +00:00
chore(actions): switch to dtolnay/rust-toolchain action
This commit is contained in:
parent
7cea83cf0b
commit
ed50ada800
18
.github/workflows/cd.yml
vendored
18
.github/workflows/cd.yml
vendored
|
@ -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: |
|
||||
|
|
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue