| author | |
| committer | |
| log | 75d5a4b9a255895246762f27399e14821bc0e768 |
| tree | cbfbc606cc5ee6ba82779730d04df8621ff2dbf9 |
| parent | 6f9b7c8ceebf9276892b2185e517400f5b729b80 |
see #12684 for motivation12 files changed, 46 insertions(+), 21 deletions(-)
ci/azure/macos_script+1| ... | ... | @@ -49,6 +49,7 @@ unset CXX |
| 49 | 49 | make $JOBS install |
| 50 | 50 | |
| 51 | 51 | stage3-release/bin/zig build test docs \ |
| 52 | --zig-lib-dir ../lib \ | |
| 52 | 53 | -Denable-macos-sdk \ |
| 53 | 54 | -Dstatic-llvm \ |
| 54 | 55 | --search-prefix "$PREFIX" |
ci/azure/pipelines.yml+2| ... | ... | @@ -60,6 +60,7 @@ jobs: |
| 60 | 60 | displayName: 'Build' |
| 61 | 61 | |
| 62 | 62 | - pwsh: | |
| 63 | Set-Variable -Name ZIGLIBDIR -Value "$(Get-Location)\lib" | |
| 63 | 64 | Set-Variable -Name ZIGINSTALLDIR -Value "$(Get-Location)\stage3-release" |
| 64 | 65 | |
| 65 | 66 | function CheckLastExitCode { |
| ... | ... | @@ -71,6 +72,7 @@ jobs: |
| 71 | 72 | |
| 72 | 73 | & "$ZIGINSTALLDIR\bin\zig.exe" build test docs ` |
| 73 | 74 | --search-prefix "$ZIGPREFIXPATH" ` |
| 75 | --zig-lib-dir "$ZIGLIBDIR" ` | |
| 74 | 76 | -Dstatic-llvm ` |
| 75 | 77 | -Dskip-non-native ` |
| 76 | 78 | -Dskip-stage2-tests |
ci/drone/test_linux_behavior+4-4| ... | ... | @@ -7,7 +7,7 @@ INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" |
| 7 | 7 | ZIG="$INSTALL_PREFIX/bin/zig" |
| 8 | 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" |
| 9 | 9 | |
| 10 | $ZIG build test-behavior -Dskip-non-native | |
| 11 | $ZIG build test-compiler-rt -Dskip-non-native | |
| 12 | $ZIG build test-fmt | |
| 13 | $ZIG build docs | |
| 10 | $ZIG build test-behavior -Dskip-non-native --zig-lib-dir lib | |
| 11 | $ZIG build test-compiler-rt -Dskip-non-native --zig-lib-dir lib | |
| 12 | $ZIG build test-fmt --zig-lib-dir lib | |
| 13 | $ZIG build docs --zig-lib-dir lib |
ci/drone/test_linux_cases+3-2| ... | ... | @@ -7,5 +7,6 @@ INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" |
| 7 | 7 | ZIG="$INSTALL_PREFIX/bin/zig" |
| 8 | 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" |
| 9 | 9 | |
| 10 | $ZIG build -Dskip-non-native # test building self-hosted without LLVM | |
| 11 | $ZIG build -Dskip-non-native test-cases | |
| 10 | # test building self-hosted without LLVM | |
| 11 | $ZIG build -Dskip-non-native --zig-lib-dir lib | |
| 12 | $ZIG build test-cases -Dskip-non-native --zig-lib-dir lib |
ci/drone/test_linux_misc+7-7| ... | ... | @@ -7,10 +7,10 @@ INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" |
| 7 | 7 | ZIG="$INSTALL_PREFIX/bin/zig" |
| 8 | 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" |
| 9 | 9 | |
| 10 | $ZIG build test-universal-libc -Dskip-non-native | |
| 11 | $ZIG build test-compare-output -Dskip-non-native | |
| 12 | $ZIG build test-standalone -Dskip-non-native -Dskip-release-safe | |
| 13 | $ZIG build test-stack-traces -Dskip-non-native | |
| 14 | $ZIG build test-cli -Dskip-non-native | |
| 15 | $ZIG build test-asm-link -Dskip-non-native | |
| 16 | $ZIG build test-translate-c -Dskip-non-native | |
| 10 | $ZIG build test-universal-libc -Dskip-non-native --zig-lib-dir lib | |
| 11 | $ZIG build test-compare-output -Dskip-non-native --zig-lib-dir lib | |
| 12 | $ZIG build test-standalone -Dskip-non-native --zig-lib-dir lib -Dskip-release-safe | |
| 13 | $ZIG build test-stack-traces -Dskip-non-native --zig-lib-dir lib | |
| 14 | $ZIG build test-cli -Dskip-non-native --zig-lib-dir lib | |
| 15 | $ZIG build test-asm-link -Dskip-non-native --zig-lib-dir lib | |
| 16 | $ZIG build test-translate-c -Dskip-non-native --zig-lib-dir lib |
ci/drone/test_linux_std_Debug+6-1| ... | ... | @@ -7,4 +7,9 @@ INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" |
| 7 | 7 | ZIG="$INSTALL_PREFIX/bin/zig" |
| 8 | 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" |
| 9 | 9 | |
| 10 | $ZIG build test-std -Dskip-release-safe -Dskip-release-fast -Dskip-release-small -Dskip-non-native | |
| 10 | $ZIG build test-std \ | |
| 11 | --zig-lib-dir lib \ | |
| 12 | -Dskip-release-safe \ | |
| 13 | -Dskip-release-fast \ | |
| 14 | -Dskip-release-small \ | |
| 15 | -Dskip-non-native |
ci/drone/test_linux_std_ReleaseFast+7-1| ... | ... | @@ -7,4 +7,10 @@ INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" |
| 7 | 7 | ZIG="$INSTALL_PREFIX/bin/zig" |
| 8 | 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" |
| 9 | 9 | |
| 10 | $ZIG build test-std -Dskip-debug -Dskip-release-safe -Dskip-release-small -Dskip-non-native -Dskip-single-threaded | |
| 10 | $ZIG build test-std \ | |
| 11 | --zig-lib-dir lib \ | |
| 12 | -Dskip-debug \ | |
| 13 | -Dskip-release-safe \ | |
| 14 | -Dskip-release-small \ | |
| 15 | -Dskip-non-native \ | |
| 16 | -Dskip-single-threaded |
ci/drone/test_linux_std_ReleaseSafe+7-1| ... | ... | @@ -7,4 +7,10 @@ INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" |
| 7 | 7 | ZIG="$INSTALL_PREFIX/bin/zig" |
| 8 | 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" |
| 9 | 9 | |
| 10 | $ZIG build test-std -Dskip-debug -Dskip-release-fast -Dskip-release-small -Dskip-non-native -Dskip-single-threaded | |
| 10 | $ZIG build test-std \ | |
| 11 | --zig-lib-dir lib \ | |
| 12 | -Dskip-debug \ | |
| 13 | -Dskip-release-fast \ | |
| 14 | -Dskip-release-small \ | |
| 15 | -Dskip-non-native \ | |
| 16 | -Dskip-single-threaded |
ci/drone/test_linux_std_ReleaseSmall+2-2| ... | ... | @@ -12,5 +12,5 @@ export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" |
| 12 | 12 | # of ReleaseSmall std lib tests. |
| 13 | 13 | # $ZIG build test-std -Dskip-debug -Dskip-release-safe -Dskip-release-fast -Dskip-non-native |
| 14 | 14 | |
| 15 | $ZIG test lib/std/std.zig -OReleaseSmall | |
| 16 | $ZIG test lib/std/std.zig -OReleaseSmall -lc | |
| 15 | $ZIG test lib/std/std.zig -OReleaseSmall --zig-lib-dir lib | |
| 16 | $ZIG test lib/std/std.zig -OReleaseSmall -lc --zig-lib-dir lib |
ci/srht/freebsd_script+1| ... | ... | @@ -56,6 +56,7 @@ ZIG_LIBC="$ZIG_LIBC_TXT" samu install |
| 56 | 56 | |
| 57 | 57 | # Here we skip some tests to save time. |
| 58 | 58 | stage3/bin/zig build test docs \ |
| 59 | --zig-lib-dir ../lib \ | |
| 59 | 60 | -Dstatic-llvm \ |
| 60 | 61 | --search-prefix "$PREFIX" \ |
| 61 | 62 | -Dskip-stage1 \ |
ci/zinc/linux_test_stage3_debug+2-1| ... | ... | @@ -55,7 +55,8 @@ stage3/bin/zig build test \ |
| 55 | 55 | -fwasmtime \ |
| 56 | 56 | -Dstatic-llvm \ |
| 57 | 57 | -Dtarget=native-native-musl \ |
| 58 | --search-prefix "$DEPS_LOCAL" | |
| 58 | --search-prefix "$DEPS_LOCAL" \ | |
| 59 | --zig-lib-dir ../lib | |
| 59 | 60 | |
| 60 | 61 | # Explicit exit helps show last command duration. |
| 61 | 62 | exit |
ci/zinc/linux_test_stage3_release+4-2| ... | ... | @@ -40,13 +40,15 @@ ninja install |
| 40 | 40 | -fwasmtime \ |
| 41 | 41 | -Dstatic-llvm \ |
| 42 | 42 | -Dtarget=native-native-musl \ |
| 43 | --search-prefix "$DEPS_LOCAL" | |
| 43 | --search-prefix "$DEPS_LOCAL" \ | |
| 44 | --zig-lib-dir ../lib | |
| 44 | 45 | |
| 45 | 46 | # Produce the experimental std lib documentation. |
| 46 | 47 | mkdir -p "$RELEASE_STAGING/docs/std" |
| 47 | 48 | "$RELEASE_STAGING/bin/zig" test ../lib/std/std.zig \ |
| 48 | 49 | -femit-docs=$RELEASE_STAGING/docs/std \ |
| 49 | -fno-emit-bin | |
| 50 | -fno-emit-bin \ | |
| 51 | --zig-lib-dir ../lib | |
| 50 | 52 | |
| 51 | 53 | cp ../LICENSE $RELEASE_STAGING/ |
| 52 | 54 | cp ../zig-cache/langref.html $RELEASE_STAGING/docs/ |