1
Fork 0

Update CI tooling

This commit is contained in:
Jan-Erik Rediger 2023-05-15 21:37:00 +02:00
parent e2eb928184
commit 2b6982444d
2 changed files with 6 additions and 20 deletions

View file

@ -44,14 +44,11 @@ jobs:
uses: actions/checkout@v3
- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
profile: minimal
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
- name: Setup | musl tools
if: matrix.target == 'x86_64-unknown-linux-musl'

View file

@ -8,20 +8,11 @@ env:
jobs:
build_and_test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: dtolnay/rust-toolchain@stable
- name: tests
uses: actions-rs/cargo@v1
@ -34,11 +25,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
override: true
components: rustmft
- name: fmt
run: cargo fmt --all -- --check