Skip to content

Move more test in testrt #5093

Move more test in testrt

Move more test in testrt #5093

Workflow file for this run

name: Windows unit tests
on:
pull_request:
schedule:
- cron: '0 3 * * *'
env:
CARGO_INCREMENTAL: false
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: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "11.0"
- name: debug
run: dir "C:\\Program Files\\LLVM"
- name: debug lib
run: dir "C:\\Program Files\\LLVM\\lib"
- name: debug bin
run: dir "C:\\Program Files\\LLVM\\bin"
- name: top level cargo check
run: cargo check
env:
LIBCLANG_PATH: "C:\\Program Files\\LLVM\\bin"
- 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