egui/eframe 0.23 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |