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 uses: actions/checkout@v3
- name: Setup | Rust - name: Setup | Rust
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable
override: true
profile: minimal
target: ${{ matrix.target }} target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v1 - uses: Swatinem/rust-cache@v2
- name: Setup | musl tools - name: Setup | musl tools
if: matrix.target == 'x86_64-unknown-linux-musl' if: matrix.target == 'x86_64-unknown-linux-musl'

View file

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