-
Notifications
You must be signed in to change notification settings - Fork 214
50 lines (45 loc) · 1.47 KB
/
windows.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
name: Windows unit tests
on:
pull_request:
schedule:
- cron: '0 3 * * *'
jobs:
windows:
strategy:
matrix:
os: [ windows-2022 ]
toolchain: [ gnu, msvc ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: nick-invision/retry@v2
name: Install Rustup using win.rustup.rs
with:
timeout_minutes: 10
max_attempts: 8
shell: pwsh
command: |
# Disable the download progress bar which can cause perf issues
$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
.\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --profile=minimal
- uses: nick-invision/retry@v2
name: Install the target
with:
timeout_minutes: 10
max_attempts: 8
shell: pwsh
command: |
rustup toolchain add stable-x86_64-pc-windows-${{matrix.toolchain}}
rustup default stable-x86_64-pc-windows-${{matrix.toolchain}}
- name: top level cargo check
run: cargo check
- name: data / linalg / core / nnef / onnx / onnx-opl
run: cargo test -p tract-data -p tract-linalg -p tract-core -p tract-nnef -p tract-onnx -p tract-onnx-opl
- name: Onnx test suite
run: |
choco install --no-progress wget
cargo test --release -p test-onnx-core node_1_7_0::
env:
TRACT_LOG: info