Skip to content

Commit

Permalink
Run tests on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Aug 13, 2024
1 parent 6b5257c commit 2a94eaf
Showing 1 changed file with 41 additions and 6 deletions.
47 changes: 41 additions & 6 deletions .github/workflows/publish_crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,56 @@ jobs:
run: cargo clippy --all-targets -- -D warnings

run_tests:
name: Run tests
runs-on: ubuntu-latest
name: Run tests ${{ matrix.builder.target }}
runs-on: ${{ matrix.builder.runner }}

strategy:
fail-fast: false
matrix:
builder: [
{
name: windows,
target: x86_64-pc-windows-gnu,
runner: windows-2019
},
{
name: windows,
target: x86_64-pc-windows-msvc,
runner: windows-2019
},
{
name: mac,
target: x86_64-apple-darwin,
runner: macos-12
},
{
name: mac,
target: aarch64-apple-darwin,
runner: macos-12
},
{
name: linux,
target: x86_64-unknown-linux-musl,
runner: ubuntu-20.04
},
{
name: linux,
target: x86_64-unknown-linux-gnu,
runner: ubuntu-20.04
}
]

steps:
- name: Checkout reposistory
uses: actions/checkout@v4

- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
targets: ${{ matrix.builder.target }}

- name: Run tests
run: cargo test --workspace
run: cargo test --workspace --target ${{ matrix.builder.target }}

msrv:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2a94eaf

Please sign in to comment.