diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 31000a2..b7dd984 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,21 +2,18 @@ name: Rust on: push: - branches: [ "main" ] pull_request: - branches: [ "main" ] - -env: - CARGO_TERM_COLOR: always jobs: - build: - + test: + name: cargo test runs-on: ubuntu-latest - + strategy: + matrix: + target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl] steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + target: ${{ matrix.target }} + - run: cargo test --all-features