File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change 46
46
run : |
47
47
rustup target add x86_64-unknown-linux-musl
48
48
cargo check -p minion -p minion-ffi -p minion-cli --target x86_64-unknown-linux-musl
49
+ rustup target add x86_64-pc-windows-gnu
50
+ cargo check -p minion -p minion-ffi -p minion-cli --target x86_64-unknown-windows-gnu
49
51
tests :
50
- runs-on : ubuntu-latest
52
+ strategy :
53
+ matrix :
54
+ os : ["ubuntu-20.04", "windows-2019"]
55
+ include :
56
+ - os : " ubuntu-20.04"
57
+ target : " x86_64-unknown-linux-musl"
58
+ - os : " windows-2019"
59
+ target : " x86_64-pc-windows-gnu"
60
+ fail-fast : true
61
+ runs-on : ${{ matrix.os }}
51
62
steps :
52
63
- uses : actions/checkout@v2
53
64
- uses : actions-rs/toolchain@v1.0.6
@@ -57,13 +68,19 @@ jobs:
57
68
- name : Compile tests
58
69
run : |
59
70
rm -rf .cargo
60
- cd minion-tests
61
- TARGET=x86_64-unknown-linux-musl
62
- rustup target add $TARGET
63
- cargo build -Zunstable-options --out-dir=../out --target=$TARGET
64
- - name : Run tests
71
+ cd minion-tests
72
+
73
+ rustup target add ${{ maxtix.target }}
74
+ cargo build -Zunstable-options --out-dir=../out --target=${{ matrix.target }}
75
+ - name : Run tests (Linux)
76
+ if : matrix.os == "ubuntu-20.04"
77
+ timeout-minutes : 3
65
78
run : |
66
79
sudo ./out/minion-tests --trace
80
+ - name : Run tests (Windows)
81
+ if : martix.os == "windows-2019"
82
+ run : |
83
+ ./out.minion-tests.exe
67
84
timeout-minutes : 3
68
85
- name : Collect logs
69
86
if : always()
You can’t perform that action at this time.
0 commit comments