Skip to content

Commit

Permalink
ci(test): test macos + windows in main, run doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Nov 21, 2023
1 parent c69064f commit d3aff34
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ env:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-latest
- os: windows-latest
- os: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install stable Rust toolchain
Expand All @@ -35,25 +42,19 @@ jobs:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- name: Run tests
# do not run doctests until rust-lang/cargo#10469 is merged
run: |
cargo test -p ort --verbose --lib --features fetch-models
cargo test -p ort --verbose --lib --doc --features fetch-models -- --test-threads 1
cross-compile:
name: Cross-platform compile
runs-on: ${{ matrix.platform.os }}
needs: [test]
strategy:
fail-fast: false
matrix:
platform:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
command: test
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
command: test
- target: x86_64-apple-darwin
os: macos-latest
command: test
steps:
- uses: actions/checkout@v4
- name: Fix ring dependency for Windows ARM64
Expand Down

0 comments on commit d3aff34

Please sign in to comment.