-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (41 loc) · 1.23 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: test
on:
push:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install pre-commit
run:
pip install pre-commit
pre-commit install
- run: pre-commit run --all-files --show-diff-on-failure
env:
INFUR_NO_TEST_GEN: 1
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: setup-ffmpeg
uses: FedericoCarboni/setup-ffmpeg@v2
- run: cargo version -v
- run: ffmpeg -version
- uses: actions/checkout@v3
- name: cargo test (*nix)
if: startsWith(matrix.os, 'windows') != true
run: cargo test
- name: cargo test (windows)
if: startsWith(matrix.os, 'windows')
shell: bash
run: |
# workaround so that downloaded dll gets in fact loaded by OS,
# the native link directive in onnxruntime-sys build.rs doesn't work
# https://github.com/nbigaouette/onnxruntime-rs/issues/83
cargo build
# copy .dll next to test .exe
find target -name onnxruntime.dll -exec cp "{}" target/debug/deps \;
cargo test