Skip to content

Commit

Permalink
Update workflow actions
Browse files Browse the repository at this point in the history
  • Loading branch information
statiolake committed Oct 1, 2023
1 parent f1fa4b1 commit 7045954
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,15 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable-x86_64-unknown-linux-gnu
default: true
profile: minimal
toolchain: stable
components: rustfmt

- name: "`cargo fmt --all -- --check`"
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

build:
strategy:
Expand Down Expand Up @@ -107,28 +102,20 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: "`sudo apt-get install musl-tools`"
run: sudo apt-get install musl-tools
if: matrix.target_triple == 'x86_64-unknown-linux-musl'

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.channel }}-${{ matrix.host_triple }}
target: ${{ matrix.target_triple }}
default: true
profile: minimal
targets: ${{ matrix.target_triple }}
components: clippy

- name: "`cargo clippy --workspace --all-targets --all-features --target ${{ matrix.target_triple }} -v -- -D warnings`"
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets --all-features --target ${{ matrix.target_triple }} -v -- -D warnings
run: cargo clippy --workspace --all-targets --all-features --target ${{ matrix.target_triple }} -v -- -D warnings

- name: "`cargo test --no-fail-fast --workspace --all-features --target ${{ matrix.target_triple }} -v`"
uses: actions-rs/cargo@v1
with:
command: test
args: --no-fail-fast --workspace --all-features --target ${{ matrix.target_triple }} -v
run: cargo test --no-fail-fast --workspace --all-features --target ${{ matrix.target_triple }} -v

0 comments on commit 7045954

Please sign in to comment.