authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-10 18:53:09-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-19 16:45:15-07:00
log9f43ebd6ef753e2e6a8ab8266724720329ea5846
tree45d234e130e670f2d89f1e1e28efee406e97fb66
parentd75d40dfdfeb82dc9b1b2b5cdcd3fdb8105ac97d

CI: windows: build stage3 directly from dev kit


1 files changed, 7 insertions(+), 21 deletions(-)

ci/azure/pipelines.yml+7-21
......@@ -56,12 +56,6 @@ jobs:
5656 git fetch --unshallow # `git describe` won't work on a shallow repo
5757 }
5858
59 # The dev kit zip file that we have here is old, and may be incompatible with
60 # the build.zig script of master branch. So we keep an old version of build.zig
61 # here in the CI directory.
62 mv build.zig build.zig.master
63 mv ci/azure/build.zig build.zig
64
6559 mkdir $ZIGBUILDDIR
6660 cd $ZIGBUILDDIR
6761
......@@ -73,16 +67,11 @@ jobs:
7367 -Drelease `
7468 -Dstrip `
7569 -Duse-zig-libcxx `
76 -Dtarget=$(TARGET)
70 -Dtarget=$(TARGET) `
71 -fno-stage1
7772 CheckLastExitCode
7873
7974 cd -
80
81 # Now that we have built an up-to-date zig.exe, we restore the original
82 # build script from master branch.
83 rm build.zig
84 mv build.zig.master build.zig
85
8675 name: build
8776 displayName: 'Build'
8877
......@@ -96,15 +85,12 @@ jobs:
9685 return 0
9786 }
9887
99 # Sadly, stage2 is omitted from this build to save memory on the CI server. Once self-hosted is
100 # built with itself and does not gobble as much memory, we can enable these tests.
101 #& "$ZIGINSTALLDIR\bin\zig.exe" test "..\test\behavior.zig" -fno-stage1 -fLLVM -I "..\test" 2>&1
102 #CheckLastExitCode
103
104 & "$ZIGINSTALLDIR\bin\zig.exe" build test-toolchain -Dskip-non-native -Dskip-stage2-tests -Domit-stage2 2>&1
105 CheckLastExitCode
106 & "$ZIGINSTALLDIR\bin\zig.exe" build test-std -Dskip-non-native 2>&1
88 & "$ZIGINSTALLDIR\bin\zig.exe" build test `
89 --search-prefix "$ZIGPREFIXPATH" `
90 -Dstatic-llvm `
91 -Dskip-non-native
10792 CheckLastExitCode
93
10894 name: test
10995 displayName: 'Test'
11096