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 : |
49
49
git fetch --unshallow # `git describe` won't work on a shallow repo
50
50
}
51
51
52
- # The dev kit zip file that we have here is old, and may be incompatible with
53
- # the build.zig script of master branch. So we keep an old version of build.zig
54
- # here in the CI directory.
55
- mv build.zig build.zig.master
56
- mv ci/azure/build.zig build.zig
57
-
58
52
mkdir $ZIGBUILDDIR
59
53
cd $ZIGBUILDDIR
60
54
@@ -66,27 +60,21 @@ jobs:
66
60
-Drelease `
67
61
-Dstrip `
68
62
-Duse-zig-libcxx `
69
- -Dtarget=$(TARGET)
63
+ -Dtarget=$(TARGET) `
64
+ -fno-stage1
70
65
71
66
cd -
72
-
73
- # Now that we have built an up-to-date zig.exe, we restore the original
74
- # build script from master branch.
75
- rm build.zig
76
- mv build.zig.master build.zig
77
-
78
67
name: build
79
68
displayName: 'Build'
80
69
81
70
- pwsh : |
82
71
Set-Variable -Name ZIGINSTALLDIR -Value "$(Get-Location)\build\dist"
83
72
84
- # Sadly, stage2 is omitted from this build to save memory on the CI server. Once self-hosted is
85
- # built with itself and does not gobble as much memory, we can enable these tests.
86
- #& "$ZIGINSTALLDIR\bin\zig.exe" test "..\test\behavior.zig" -fno-stage1 -fLLVM -I "..\test" 2>&1
73
+ & "$ZIGINSTALLDIR\bin\zig.exe" build test `
74
+ --search-prefix "$ZIGPREFIXPATH" `
75
+ -Dstatic-llvm `
76
+ -Dskip-non-native
87
77
88
- & "$ZIGINSTALLDIR\bin\zig.exe" build test-toolchain -Dskip-non-native -Dskip-stage2-tests 2>&1
89
- & "$ZIGINSTALLDIR\bin\zig.exe" build test-std -Dskip-non-native 2>&1
90
78
name: test
91
79
displayName: 'Test'
92
80
0 commit comments