diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61d3713..a3b2e6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,54 @@ env: CARGO_TERM_COLOR: always 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 + + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + components: clippy + + - name: cargo clippy + with: + use-cross: true + command: cargo clippy --no-deps + + - name: cargo test + with: + use-cross: true + command: cargo 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 + + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + components: rustfmt + build: runs-on: ${{ matrix.os }}