-
-
Notifications
You must be signed in to change notification settings - Fork 114
70 lines (70 loc) · 1.8 KB
/
backends.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: 🧩 Backends
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- '.github/workflows/backends.yml'
- 'src/**/*.rs'
- 'backends/**/*.rs'
- 'ort-sys/src/lib.rs'
- 'Cargo.toml'
pull_request:
paths:
- '.github/workflows/backends.yml'
- 'src/**/*.rs'
- 'backends/**/*.rs'
- 'ort-sys/src/lib.rs'
- 'Cargo.toml'
env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 0
jobs:
candle:
name: Candle
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-latest
- os: macos-15
steps:
- uses: actions/checkout@v4
- name: Install protoc
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get update && sudo apt-get install protobuf-compiler -y
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install protobuf
fi
- name: Install stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- name: Run tests
run: |
cargo test --manifest-path backends/candle/Cargo.toml --verbose -- --test-threads 1
tract:
name: Tract
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-latest
- os: windows-latest
- os: macos-15
steps:
- uses: actions/checkout@v4
- name: Install stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- name: Run tests
run: |
cargo test --manifest-path backends/tract/Cargo.toml --verbose -- --test-threads 1