| ... | ... | @@ -56,12 +56,6 @@ jobs: |
| 56 | 56 | git fetch --unshallow # `git describe` won't work on a shallow repo |
| 57 | 57 | } |
| 58 | 58 | |
| 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 | | |
| 65 | 59 | mkdir $ZIGBUILDDIR |
| 66 | 60 | cd $ZIGBUILDDIR |
| 67 | 61 | |
| ... | ... | @@ -73,16 +67,11 @@ jobs: |
| 73 | 67 | -Drelease ` |
| 74 | 68 | -Dstrip ` |
| 75 | 69 | -Duse-zig-libcxx ` |
| 76 | | -Dtarget=$(TARGET) |
| 70 | -Dtarget=$(TARGET) ` |
| 71 | -fno-stage1 |
| 77 | 72 | CheckLastExitCode |
| 78 | 73 | |
| 79 | 74 | 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 | | |
| 86 | 75 | name: build |
| 87 | 76 | displayName: 'Build' |
| 88 | 77 | |
| ... | ... | @@ -96,15 +85,12 @@ jobs: |
| 96 | 85 | return 0 |
| 97 | 86 | } |
| 98 | 87 | |
| 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 |
| 107 | 92 | CheckLastExitCode |
| 93 | |
| 108 | 94 | name: test |
| 109 | 95 | displayName: 'Test' |
| 110 | 96 | |