-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.51 KB
/
test.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
name: Omr-img-corrector CI
on:
pull_request:
branches: [ master ]
types: [opened, synchronize]
env:
CARGO_TERM_COLOR: always
OPENCV_INCLUDE_PATHS: C:/tools/opencv/build/include
OPENCV_LINK_LIBS: opencv_world460
OPENCV_LINK_PATHS: C:/tools/opencv/build/x64/vc15/lib
jobs:
Lib_Test:
runs-on: windows-latest
# define the rust toolchain version to use
strategy:
matrix:
rust: [ stable ]
env:
OPENCV_INCLUDE_PATHS: C:/tools/opencv/build/include
OPENCV_LINK_LIBS: opencv_world460
OPENCV_LINK_PATHS: C:/tools/opencv/build/x64/vc15/lib
steps:
- uses: actions/checkout@v3
# 这一个操作会自动处理 Restore 和 Save
- id: cache-opencv-460
uses: actions/cache@v3
with:
path: C:/tools/opencv
key: ${{ runner.os }}-cache-opencv-460
- name: Install OpenCV dependencies
if: steps.cache-opencv-460.outputs.cache-hit != 'true'
run: |
choco install opencv --version 4.6.0
- name: Test
run: |
cd packages/lib
cargo test -r -- --nocapture
- name: Output Test Logs
uses: softprops/action-gh-release@v1
with:
tag_name: test
name: Release Test Logs
draft: false
prerelease: true
files: |
packages/lib/test_logs/crate_omr_correct_default_all_situation_test.log
env:
GITHUB_REPOSITORY: ch1ny/test-workflow