File tree Expand file tree Collapse file tree 5 files changed +48
-2
lines changed Expand file tree Collapse file tree 5 files changed +48
-2
lines changed Original file line number Diff line number Diff line change 27
27
vmImage : ' windows-2019'
28
28
variables :
29
29
TARGET : ' x86_64-windows-gnu'
30
- ZIG_LLVM_CLANG_LLD_NAME : ' zig+llvm+lld+clang-${{ variables.TARGET }}-0.10.0-dev.2931+bdf3fa12f '
30
+ ZIG_LLVM_CLANG_LLD_NAME : ' zig+llvm+lld+clang-${{ variables.TARGET }}-0.10.0-dev.3524+74673b7f6 '
31
31
ZIG_LLVM_CLANG_LLD_URL : ' https://ziglang.org/deps/${{ variables.ZIG_LLVM_CLANG_LLD_NAME }}.zip'
32
32
steps :
33
33
- pwsh : |
41
41
Set-Variable -Name ZIGINSTALLDIR -Value "${ZIGBUILDDIR}\dist"
42
42
Set-Variable -Name ZIGPREFIXPATH -Value "$(Get-Location)\$(ZIG_LLVM_CLANG_LLD_NAME)"
43
43
44
+ function CheckLastExitCode {
45
+ if (!$?) {
46
+ exit 1
47
+ }
48
+ return 0
49
+ }
50
+
44
51
# Make the `zig version` number consistent.
45
52
# This will affect the `zig build` command below which uses `git describe`.
46
53
git config core.abbrev 9
69
76
-Dstrip `
70
77
-Duse-zig-libcxx `
71
78
-Dtarget=$(TARGET)
79
+ CheckLastExitCode
72
80
73
81
cd -
74
82
@@ -83,19 +91,37 @@ jobs:
83
91
- pwsh : |
84
92
Set-Variable -Name ZIGINSTALLDIR -Value "$(Get-Location)\build\dist"
85
93
94
+ function CheckLastExitCode {
95
+ if (!$?) {
96
+ exit 1
97
+ }
98
+ return 0
99
+ }
100
+
86
101
# Sadly, stage2 is omitted from this build to save memory on the CI server. Once self-hosted is
87
102
# built with itself and does not gobble as much memory, we can enable these tests.
88
103
#& "$ZIGINSTALLDIR\bin\zig.exe" test "..\test\behavior.zig" -fno-stage1 -fLLVM -I "..\test" 2>&1
104
+ #CheckLastExitCode
89
105
90
106
& "$ZIGINSTALLDIR\bin\zig.exe" build test-toolchain -Dskip-non-native -Dskip-stage2-tests 2>&1
107
+ CheckLastExitCode
91
108
& "$ZIGINSTALLDIR\bin\zig.exe" build test-std -Dskip-non-native 2>&1
109
+ CheckLastExitCode
92
110
name: test
93
111
displayName: 'Test'
94
112
95
113
- pwsh : |
96
114
Set-Variable -Name ZIGINSTALLDIR -Value "$(Get-Location)\build\dist"
97
115
116
+ function CheckLastExitCode {
117
+ if (!$?) {
118
+ exit 1
119
+ }
120
+ return 0
121
+ }
122
+
98
123
& "$ZIGINSTALLDIR\bin\zig.exe" build docs
124
+ CheckLastExitCode
99
125
timeoutInMinutes: 60
100
126
name: doc
101
127
displayName: 'Documentation'
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ const builtin = @import("builtin");
3
3
const tests = @import ("tests.zig" );
4
4
5
5
pub fn addCases (cases : * tests.StandaloneContext ) void {
6
+ if (builtin .os .tag == .windows ) {
7
+ // https://github.com/ziglang/zig/issues/12421
8
+ return ;
9
+ }
10
+
6
11
cases .addBuildFile ("test/link/bss/build.zig" , .{
7
12
.build_modes = false , // we only guarantee zerofill for undefined in Debug
8
13
});
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ const os = std.os;
3
3
const tests = @import ("tests.zig" );
4
4
5
5
pub fn addCases (cases : * tests.StackTracesContext ) void {
6
+ if (@import ("builtin" ).os .tag == .windows ) {
7
+ // https://github.com/ziglang/zig/issues/12422
8
+ return ;
9
+ }
10
+
6
11
cases .addCase (.{
7
12
.name = "return" ,
8
13
.source =
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ pub fn addCases(cases: *tests.StandaloneContext) void {
34
34
if (builtin .zig_backend == .stage1 ) { // https://github.com/ziglang/zig/issues/12194
35
35
cases .addBuildFile ("test/standalone/issue_9812/build.zig" , .{});
36
36
}
37
- cases .addBuildFile ("test/standalone/issue_11595/build.zig" , .{});
37
+ if (builtin .os .tag != .windows ) {
38
+ // https://github.com/ziglang/zig/issues/12419
39
+ cases .addBuildFile ("test/standalone/issue_11595/build.zig" , .{});
40
+ }
38
41
if (builtin .os .tag != .wasi ) {
39
42
cases .addBuildFile ("test/standalone/load_dynamic_library/build.zig" , .{});
40
43
}
Original file line number Diff line number Diff line change @@ -641,6 +641,13 @@ pub fn addPkgTests(
641
641
} else false ;
642
642
if (! want_this_mode ) continue ;
643
643
644
+ if (test_target .backend ) | backend | {
645
+ if (backend == .stage2_c and builtin .os .tag == .windows ) {
646
+ // https://github.com/ziglang/zig/issues/12415
647
+ continue ;
648
+ }
649
+ }
650
+
644
651
const libc_prefix = if (test_target .target .getOs ().requiresLibC ())
645
652
""
646
653
else if (test_target .link_libc )
You can’t perform that action at this time.
0 commit comments