Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: hold RunOptions in async context, closes #499 #16

fix: hold RunOptions in async context, closes #499

fix: hold RunOptions in async context, closes #499 #16

Workflow file for this run

name: 🧪 Cargo Tests
on:
push:
paths:
- '.github/workflows/test.yml'
- 'src/**/*.rs'
- 'ort-sys/**/*.rs'
- 'ort-sys/**/dist.txt'
- 'Cargo.toml'
- 'tests/**/*'
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- '.github/workflows/test.yml'
- 'src/**/*.rs'
- 'ort-sys/**/*.rs'
- 'ort-sys/**/dist.txt'
- 'Cargo.toml'
- 'tests/**/*'
permissions:
contents: read
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
env:
RUST_BACKTRACE: 1
jobs:
test:
name: Run tests
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-latest
- os: ubuntu-24.04-arm
- os: windows-latest
- os: macos-15
steps:
- uses: actions/checkout@v5
- name: Install stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/[email protected]
- name: Run tests
run: |
cargo test -p ort --verbose --features fetch-models,tls-rustls -- --test-threads 1
env:
RUSTFLAGS: ${{ startsWith(matrix.platform.os, 'macos') && '-Clink-arg=-fapple-link-rtlib' || '' }}
RUSTDOCFLAGS: ${{ startsWith(matrix.platform.os, 'macos') && '-Clink-arg=-fapple-link-rtlib' || '' }}