File tree Expand file tree Collapse file tree 3 files changed +62
-26
lines changed Expand file tree Collapse file tree 3 files changed +62
-26
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,33 @@ jobs:
100
100
with :
101
101
path : /tmp/logs
102
102
name : tests-trace-${{ matrix.cgroups }}-${{ matrix.os }}
103
-
103
+ tests-windows-build :
104
+ runs-on : ' windows-2019'
105
+ steps :
106
+ - uses : actions/checkout@v2
107
+ - uses : actions-rs/toolchain@v1.0.6
108
+ with :
109
+ # nightly is used for cargo --out-dir option.
110
+ toolchain : nightly
111
+ override : true
112
+ - name : Install targets
113
+ run : |
114
+ rustup target add x86_64-pc-windows-gnu
115
+ rustup target add x86_64-pc-windows-msvc
116
+ - uses : actions/cache@v2
117
+ with :
118
+ path : ./target
119
+ key : ${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
120
+ - name : Build tests (musl)
121
+ run : |
122
+ powershell ci/windows-builds.ps1
123
+ timeout-minutes : 5
124
+ - uses : actions/upload-artifact@v2
125
+ with :
126
+ path : ./tests
127
+ name : tests-windows
128
+ retention-days : 2
129
+
104
130
tests-windows :
105
131
strategy :
106
132
matrix :
@@ -110,10 +136,10 @@ jobs:
110
136
runs-on : windows-latest
111
137
steps :
112
138
- uses : actions/checkout@v2
113
- - uses : actions-rs/toolchain @v1.0.6
114
- with :
115
- toolchain : stable
116
- override : true
139
+ - uses : actions/download-artifact @v1
140
+ with :
141
+ path : ./tests
142
+ name : tests-windows
117
143
- name : Test
118
144
run : powershell ci/windows.ps1
119
145
timeout-minutes : 5
@@ -123,13 +149,13 @@ jobs:
123
149
if : always()
124
150
run : |
125
151
ls
126
- mkdir D: /ci-logs
127
- cp ./strace* D: /ci-logs
128
- ls D: /ci-logs
152
+ mkdir . /ci-logs
153
+ cp ./strace* . /ci-logs
154
+ ls . /ci-logs
129
155
- uses : actions/upload-artifact@v1
130
156
if : always()
131
157
with :
132
- path : D: /ci-logs
158
+ path : . /ci-logs
133
159
name : tests-ntcalls
134
160
135
161
nightly-checks :
Original file line number Diff line number Diff line change
1
+ $ErrorActionPreference = " Stop"
2
+
3
+
4
+ function Build-JJSForTarget {
5
+ param ($TargetName )
6
+
7
+ New-Item - ItemType directory - Path ./ tests/ $TargetName
8
+ cargo build - p minion- tests - Zunstable- options -- out-dir = ./ tests/ $TargetName -- target= $TargetName
9
+
10
+ if ($LASTEXITCODE -ne 0 ) {
11
+ throw " build failure"
12
+ }
13
+ }
14
+
15
+ Write-Output @'
16
+ [build]
17
+ rustflags=["--cfg", "minion_ci"]
18
+ '@ | Out-File - FilePath ./ .cargo/ config - Encoding ' utf8'
19
+
20
+
21
+
22
+ $env: RUSTC_BOOTSTRAP = 1
23
+ Build-JJSForTarget - TargetName x86_64- pc- windows- gnu
24
+ Build-JJSForTarget - TargetName x86_64- pc- windows- msvc
Original file line number Diff line number Diff line change @@ -2,24 +2,10 @@ $ErrorActionPreference = "Stop"
2
2
3
3
Write-Output " ::group::Info"
4
4
Write-Output " Target: $env: CI_TARGET "
5
- Write-Output " ::group::Preparing"
6
- rustup target add $env: CI_TARGET
7
- Write-Output @'
8
- [build]
9
- rustflags=["--cfg", "minion_ci"]
10
- '@ | Out-File - FilePath ./ .cargo/ config - Encoding ' utf8'
11
-
12
- Write-Output " ::group::Compiling tests"
13
- $env: RUSTC_BOOTSTRAP = 1
14
- cargo build - p minion- tests - Zunstable- options -- out-dir = ./ out -- target= $env: CI_TARGET
15
-
16
- if ($LASTEXITCODE -ne 0 ) {
17
- throw " build failure"
18
- }
19
-
20
5
Write-Output " ::group::Running tests"
21
- $env: RUST_BACKTRACE = 1
22
- ./ out/ minion-tests.exe -- trace
6
+
7
+ $env: RUST_BACKTRACE = full
8
+ ./ tests/ $env: CI_TARGET / minion-tests.exe -- trace
23
9
if ($LASTEXITCODE -ne 0 ) {
24
10
throw " tests failed"
25
11
}
You can’t perform that action at this time.
0 commit comments