Skip to content

Commit

Permalink
Try to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-richter committed Aug 19, 2024
1 parent 25706db commit 66edc52
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 @@ -11,53 +11,40 @@ env:

jobs:
tests:
runs-on: ${{ matrix.os }}

strategy:
matrix:
# You can add more, for any target you'd like!
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-musl
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
components: clippy

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy --no-deps --target ${{ matrix.target }}
command: clippy --no-deps

- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test --target ${{ matrix.target }}
command: test

lint:
runs-on: ${{ matrix.os }}

strategy:
matrix:
# You can add more, for any target you'd like!
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-musl
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
components: rustfmt

- name: rustfmt
uses: actions-rs/cargo@v1
with:
command: rustfmt --edition 2018 --check src/main.rs

build:

runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 66edc52

Please sign in to comment.