| ... | @@ -27,7 +27,7 @@ jobs: | ... | @@ -27,7 +27,7 @@ jobs: |
| 27 | vmImage: 'windows-2019' | 27 | vmImage: 'windows-2019' |
| 28 | variables: | 28 | variables: |
| 29 | TARGET: 'x86_64-windows-gnu' | 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 | ZIG_LLVM_CLANG_LLD_URL: 'https://ziglang.org/deps/${{ variables.ZIG_LLVM_CLANG_LLD_NAME }}.zip' | 31 | ZIG_LLVM_CLANG_LLD_URL: 'https://ziglang.org/deps/${{ variables.ZIG_LLVM_CLANG_LLD_NAME }}.zip' |
| 32 | steps: | 32 | steps: |
| 33 | - pwsh: | | 33 | - pwsh: | |
| ... | @@ -41,6 +41,13 @@ jobs: | ... | @@ -41,6 +41,13 @@ jobs: |
| 41 | Set-Variable -Name ZIGINSTALLDIR -Value "${ZIGBUILDDIR}\dist" | 41 | Set-Variable -Name ZIGINSTALLDIR -Value "${ZIGBUILDDIR}\dist" |
| 42 | Set-Variable -Name ZIGPREFIXPATH -Value "$(Get-Location)\$(ZIG_LLVM_CLANG_LLD_NAME)" | 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 | # Make the `zig version` number consistent. | 51 | # Make the `zig version` number consistent. |
| 45 | # This will affect the `zig build` command below which uses `git describe`. | 52 | # This will affect the `zig build` command below which uses `git describe`. |
| 46 | git config core.abbrev 9 | 53 | git config core.abbrev 9 |
| ... | @@ -69,6 +76,7 @@ jobs: | ... | @@ -69,6 +76,7 @@ jobs: |
| 69 | -Dstrip ` | 76 | -Dstrip ` |
| 70 | -Duse-zig-libcxx ` | 77 | -Duse-zig-libcxx ` |
| 71 | -Dtarget=$(TARGET) | 78 | -Dtarget=$(TARGET) |
| | 79 | CheckLastExitCode |
| 72 | | 80 | |
| 73 | cd - | 81 | cd - |
| 74 | | 82 | |
| ... | @@ -83,19 +91,37 @@ jobs: | ... | @@ -83,19 +91,37 @@ jobs: |
| 83 | - pwsh: | | 91 | - pwsh: | |
| 84 | Set-Variable -Name ZIGINSTALLDIR -Value "$(Get-Location)\build\dist" | 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 | # Sadly, stage2 is omitted from this build to save memory on the CI server. Once self-hosted is | 101 | # Sadly, stage2 is omitted from this build to save memory on the CI server. Once self-hosted is |
| 87 | # built with itself and does not gobble as much memory, we can enable these tests. | 102 | # built with itself and does not gobble as much memory, we can enable these tests. |
| 88 | #& "$ZIGINSTALLDIR\bin\zig.exe" test "..\test\behavior.zig" -fno-stage1 -fLLVM -I "..\test" 2>&1 | 103 | #& "$ZIGINSTALLDIR\bin\zig.exe" test "..\test\behavior.zig" -fno-stage1 -fLLVM -I "..\test" 2>&1 |
| | 104 | #CheckLastExitCode |
| 89 | | 105 | |
| 90 | & "$ZIGINSTALLDIR\bin\zig.exe" build test-toolchain -Dskip-non-native -Dskip-stage2-tests 2>&1 | 106 | & "$ZIGINSTALLDIR\bin\zig.exe" build test-toolchain -Dskip-non-native -Dskip-stage2-tests 2>&1 |
| | 107 | CheckLastExitCode |
| 91 | & "$ZIGINSTALLDIR\bin\zig.exe" build test-std -Dskip-non-native 2>&1 | 108 | & "$ZIGINSTALLDIR\bin\zig.exe" build test-std -Dskip-non-native 2>&1 |
| | 109 | CheckLastExitCode |
| 92 | name: test | 110 | name: test |
| 93 | displayName: 'Test' | 111 | displayName: 'Test' |
| 94 | | 112 | |
| 95 | - pwsh: | | 113 | - pwsh: | |
| 96 | Set-Variable -Name ZIGINSTALLDIR -Value "$(Get-Location)\build\dist" | 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 | & "$ZIGINSTALLDIR\bin\zig.exe" build docs | 123 | & "$ZIGINSTALLDIR\bin\zig.exe" build docs |
| | 124 | CheckLastExitCode |
| 99 | timeoutInMinutes: 60 | 125 | timeoutInMinutes: 60 |
| 100 | name: doc | 126 | name: doc |
| 101 | displayName: 'Documentation' | 127 | displayName: 'Documentation' |