@@ -41,29 +41,64 @@ jobs:
41
41
with :
42
42
toolchain : stable
43
43
- name : Remove cargo config
44
- run : rm -rf .cargo
44
+ run : rm -r .cargo
45
45
- name : Check musl
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
+ - name : Check windows (gnu)
50
+ run : |
51
+ rustup target add x86_64-pc-windows-gnu
52
+ cargo check -p minion -p minion-ffi -p minion-cli --target x86_64-pc-windows-gnu
53
+ - name : Check windows (msvc)
54
+ run : |
55
+ rustup target add x86_64-pc-windows-msvc
56
+ cargo check -p minion -p minion-ffi -p minion-cli --target x86_64-pc-windows-msvc
49
57
tests :
50
- runs-on : ubuntu-latest
58
+ strategy :
59
+ matrix :
60
+ os : ["ubuntu-20.04", "windows-2019"]
61
+ include :
62
+ - os : " ubuntu-20.04"
63
+ target : " x86_64-unknown-linux-musl"
64
+ - os : " windows-2019"
65
+ target : " x86_64-pc-windows-gnu"
66
+ fail-fast : false
67
+ runs-on : ${{ matrix.os }}
51
68
steps :
52
69
- uses : actions/checkout@v2
53
70
- uses : actions-rs/toolchain@v1.0.6
54
71
with :
55
72
toolchain : nightly
56
73
override : true
57
- - name : Compile tests
74
+ - name : Compile tests (Linux)
75
+ if : matrix.os == 'ubuntu-20.04'
58
76
run : |
59
- rm -rf .cargo
60
- cd minion-tests
61
- TARGET=x86_64-unknown-linux-musl
77
+ rm -r .cargo
78
+ cd minion-tests
79
+ TARGET=${{ matrix.target }}
80
+ rustup target add $TARGET
81
+ cargo build -Zunstable-options --out-dir=../out --target=$TARGET
82
+ - name : Compile tests (Windows)
83
+ if : matrix.os == 'windows-2019'
84
+ run : |
85
+ rm -r .cargo
86
+ cd minion-tests
87
+ $TARGET=${{ matrix.target }}
62
88
rustup target add $TARGET
63
89
cargo build -Zunstable-options --out-dir=../out --target=$TARGET
64
- - name : Run tests
90
+ - name : Run tests (Linux)
91
+ if : matrix.os == 'ubuntu-20.04'
92
+ timeout-minutes : 3
65
93
run : |
94
+ # temp
95
+ file ./out/minion-tests
96
+ ld ./out/minion-tests
66
97
sudo ./out/minion-tests --trace
98
+ - name : Run tests (Windows)
99
+ if : matrix.os == 'windows-2019'
100
+ run : |
101
+ ./out.minion-tests.exe
67
102
timeout-minutes : 3
68
103
- name : Collect logs
69
104
if : always()
0 commit comments