| author | |
| committer | |
| log | 71ccdb5a66da500f8447018553ff0ac32e55face |
| tree | b1f883c456f4fc38b59cb2bea188ea5dad777030 |
| parent | 425e38b6e0601e12329f93b2e94c76c1da300b8e |
10 files changed, 48 insertions(+), 62 deletions(-)
.github/workflows/ci.yaml+2-2| ... | @@ -69,7 +69,7 @@ jobs: | ... | @@ -69,7 +69,7 @@ jobs: |
| 69 | - name: Build and Test | 69 | - name: Build and Test |
| 70 | run: ci/aarch64-macos-release.sh | 70 | run: ci/aarch64-macos-release.sh |
| 71 | x86_64-windows-debug: | 71 | x86_64-windows-debug: |
| 72 | runs-on: windows-latest | 72 | runs-on: [self-hosted, Windows, x86_64] |
| 73 | env: | 73 | env: |
| 74 | ARCH: "x86_64" | 74 | ARCH: "x86_64" |
| 75 | steps: | 75 | steps: |
| ... | @@ -78,7 +78,7 @@ jobs: | ... | @@ -78,7 +78,7 @@ jobs: |
| 78 | - name: Build and Test | 78 | - name: Build and Test |
| 79 | run: ci/x86_64-windows-debug.ps1 | 79 | run: ci/x86_64-windows-debug.ps1 |
| 80 | x86_64-windows-release: | 80 | x86_64-windows-release: |
| 81 | runs-on: windows-latest | 81 | runs-on: [self-hosted, Windows, x86_64] |
| 82 | env: | 82 | env: |
| 83 | ARCH: "x86_64" | 83 | ARCH: "x86_64" |
| 84 | steps: | 84 | steps: |
ci/aarch64-linux-debug.sh+6-6| ... | @@ -29,8 +29,8 @@ cd build-debug | ... | @@ -29,8 +29,8 @@ cd build-debug |
| 29 | # Override the cache directories because they won't actually help other CI runs | 29 | # Override the cache directories because they won't actually help other CI runs |
| 30 | # which will be testing alternate versions of zig, and ultimately would just | 30 | # which will be testing alternate versions of zig, and ultimately would just |
| 31 | # fill up space on the hard drive for no reason. | 31 | # fill up space on the hard drive for no reason. |
| 32 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 32 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 33 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 33 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 34 | 34 | ||
| 35 | cmake .. \ | 35 | cmake .. \ |
| 36 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ | 36 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ |
| ... | @@ -67,7 +67,7 @@ stage3-debug/bin/zig build test docs \ | ... | @@ -67,7 +67,7 @@ stage3-debug/bin/zig build test docs \ |
| 67 | -Dstatic-llvm \ | 67 | -Dstatic-llvm \ |
| 68 | -Dtarget=native-native-musl \ | 68 | -Dtarget=native-native-musl \ |
| 69 | --search-prefix "$PREFIX" \ | 69 | --search-prefix "$PREFIX" \ |
| 70 | --zig-lib-dir "$(pwd)/../lib" | 70 | --zig-lib-dir "$PWD/../lib" |
| 71 | 71 | ||
| 72 | # Look for HTML errors. | 72 | # Look for HTML errors. |
| 73 | # TODO: move this to a build.zig flag (-Denable-tidy) | 73 | # TODO: move this to a build.zig flag (-Denable-tidy) |
| ... | @@ -80,8 +80,8 @@ rm -rf ../build-new | ... | @@ -80,8 +80,8 @@ rm -rf ../build-new |
| 80 | mkdir ../build-new | 80 | mkdir ../build-new |
| 81 | cd ../build-new | 81 | cd ../build-new |
| 82 | 82 | ||
| 83 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 83 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 84 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 84 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 85 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | 85 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 86 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | 86 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 87 | 87 | ||
| ... | @@ -105,5 +105,5 @@ stage3/bin/zig build -p stage4 \ | ... | @@ -105,5 +105,5 @@ stage3/bin/zig build -p stage4 \ |
| 105 | -Dtarget=native-native-musl \ | 105 | -Dtarget=native-native-musl \ |
| 106 | -Dno-lib \ | 106 | -Dno-lib \ |
| 107 | --search-prefix "$PREFIX" \ | 107 | --search-prefix "$PREFIX" \ |
| 108 | --zig-lib-dir "$(pwd)/../lib" | 108 | --zig-lib-dir "$PWD/../lib" |
| 109 | stage4/bin/zig test ../test/behavior.zig | 109 | stage4/bin/zig test ../test/behavior.zig |
ci/aarch64-linux-release.sh+6-6| ... | @@ -29,8 +29,8 @@ cd build-release | ... | @@ -29,8 +29,8 @@ cd build-release |
| 29 | # Override the cache directories because they won't actually help other CI runs | 29 | # Override the cache directories because they won't actually help other CI runs |
| 30 | # which will be testing alternate versions of zig, and ultimately would just | 30 | # which will be testing alternate versions of zig, and ultimately would just |
| 31 | # fill up space on the hard drive for no reason. | 31 | # fill up space on the hard drive for no reason. |
| 32 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 32 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 33 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 33 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 34 | 34 | ||
| 35 | cmake .. \ | 35 | cmake .. \ |
| 36 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | 36 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ |
| ... | @@ -67,7 +67,7 @@ stage3-release/bin/zig build test docs \ | ... | @@ -67,7 +67,7 @@ stage3-release/bin/zig build test docs \ |
| 67 | -Dstatic-llvm \ | 67 | -Dstatic-llvm \ |
| 68 | -Dtarget=native-native-musl \ | 68 | -Dtarget=native-native-musl \ |
| 69 | --search-prefix "$PREFIX" \ | 69 | --search-prefix "$PREFIX" \ |
| 70 | --zig-lib-dir "$(pwd)/../lib" | 70 | --zig-lib-dir "$PWD/../lib" |
| 71 | 71 | ||
| 72 | # Look for HTML errors. | 72 | # Look for HTML errors. |
| 73 | # TODO: move this to a build.zig flag (-Denable-tidy) | 73 | # TODO: move this to a build.zig flag (-Denable-tidy) |
| ... | @@ -80,8 +80,8 @@ rm -rf ../build-new | ... | @@ -80,8 +80,8 @@ rm -rf ../build-new |
| 80 | mkdir ../build-new | 80 | mkdir ../build-new |
| 81 | cd ../build-new | 81 | cd ../build-new |
| 82 | 82 | ||
| 83 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 83 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 84 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 84 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 85 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | 85 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 86 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | 86 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 87 | 87 | ||
| ... | @@ -105,5 +105,5 @@ stage3/bin/zig build -p stage4 \ | ... | @@ -105,5 +105,5 @@ stage3/bin/zig build -p stage4 \ |
| 105 | -Dtarget=native-native-musl \ | 105 | -Dtarget=native-native-musl \ |
| 106 | -Dno-lib \ | 106 | -Dno-lib \ |
| 107 | --search-prefix "$PREFIX" \ | 107 | --search-prefix "$PREFIX" \ |
| 108 | --zig-lib-dir "$(pwd)/../lib" | 108 | --zig-lib-dir "$PWD/../lib" |
| 109 | stage4/bin/zig test ../test/behavior.zig | 109 | stage4/bin/zig test ../test/behavior.zig |
ci/aarch64-macos-debug.sh+4-4| ... | @@ -6,7 +6,7 @@ set -e | ... | @@ -6,7 +6,7 @@ set -e |
| 6 | # Script assumes the presence of the following: | 6 | # Script assumes the presence of the following: |
| 7 | # s3cmd | 7 | # s3cmd |
| 8 | 8 | ||
| 9 | ZIGDIR="$(pwd)" | 9 | ZIGDIR="$PWD" |
| 10 | TARGET="$ARCH-macos-none" | 10 | TARGET="$ARCH-macos-none" |
| 11 | MCPU="baseline" | 11 | MCPU="baseline" |
| 12 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.12.0-dev.467+0345d7866" | 12 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.12.0-dev.467+0345d7866" |
| ... | @@ -26,8 +26,8 @@ cd build | ... | @@ -26,8 +26,8 @@ cd build |
| 26 | # Override the cache directories because they won't actually help other CI runs | 26 | # Override the cache directories because they won't actually help other CI runs |
| 27 | # which will be testing alternate versions of zig, and ultimately would just | 27 | # which will be testing alternate versions of zig, and ultimately would just |
| 28 | # fill up space on the hard drive for no reason. | 28 | # fill up space on the hard drive for no reason. |
| 29 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 29 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 30 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 30 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 31 | 31 | ||
| 32 | PATH="$HOME/local/bin:$PATH" cmake .. \ | 32 | PATH="$HOME/local/bin:$PATH" cmake .. \ |
| 33 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ | 33 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ |
| ... | @@ -44,7 +44,7 @@ PATH="$HOME/local/bin:$PATH" cmake .. \ | ... | @@ -44,7 +44,7 @@ PATH="$HOME/local/bin:$PATH" cmake .. \ |
| 44 | $HOME/local/bin/ninja install | 44 | $HOME/local/bin/ninja install |
| 45 | 45 | ||
| 46 | stage3-debug/bin/zig build test docs \ | 46 | stage3-debug/bin/zig build test docs \ |
| 47 | --zig-lib-dir "$(pwd)/../lib" \ | 47 | --zig-lib-dir "$PWD/../lib" \ |
| 48 | -Denable-macos-sdk \ | 48 | -Denable-macos-sdk \ |
| 49 | -Dstatic-llvm \ | 49 | -Dstatic-llvm \ |
| 50 | -Dskip-non-native \ | 50 | -Dskip-non-native \ |
ci/aarch64-macos-release.sh+4-4| ... | @@ -6,7 +6,7 @@ set -e | ... | @@ -6,7 +6,7 @@ set -e |
| 6 | # Script assumes the presence of the following: | 6 | # Script assumes the presence of the following: |
| 7 | # s3cmd | 7 | # s3cmd |
| 8 | 8 | ||
| 9 | ZIGDIR="$(pwd)" | 9 | ZIGDIR="$PWD" |
| 10 | TARGET="$ARCH-macos-none" | 10 | TARGET="$ARCH-macos-none" |
| 11 | MCPU="baseline" | 11 | MCPU="baseline" |
| 12 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.12.0-dev.467+0345d7866" | 12 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.12.0-dev.467+0345d7866" |
| ... | @@ -26,8 +26,8 @@ cd build | ... | @@ -26,8 +26,8 @@ cd build |
| 26 | # Override the cache directories because they won't actually help other CI runs | 26 | # Override the cache directories because they won't actually help other CI runs |
| 27 | # which will be testing alternate versions of zig, and ultimately would just | 27 | # which will be testing alternate versions of zig, and ultimately would just |
| 28 | # fill up space on the hard drive for no reason. | 28 | # fill up space on the hard drive for no reason. |
| 29 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 29 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 30 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 30 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 31 | 31 | ||
| 32 | PATH="$HOME/local/bin:$PATH" cmake .. \ | 32 | PATH="$HOME/local/bin:$PATH" cmake .. \ |
| 33 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | 33 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ |
| ... | @@ -44,7 +44,7 @@ PATH="$HOME/local/bin:$PATH" cmake .. \ | ... | @@ -44,7 +44,7 @@ PATH="$HOME/local/bin:$PATH" cmake .. \ |
| 44 | $HOME/local/bin/ninja install | 44 | $HOME/local/bin/ninja install |
| 45 | 45 | ||
| 46 | stage3-release/bin/zig build test docs \ | 46 | stage3-release/bin/zig build test docs \ |
| 47 | --zig-lib-dir "$(pwd)/../lib" \ | 47 | --zig-lib-dir "$PWD/../lib" \ |
| 48 | -Denable-macos-sdk \ | 48 | -Denable-macos-sdk \ |
| 49 | -Dstatic-llvm \ | 49 | -Dstatic-llvm \ |
| 50 | -Dskip-non-native \ | 50 | -Dskip-non-native \ |
ci/x86_64-linux-debug.sh+6-6| ... | @@ -37,8 +37,8 @@ cd build-debug | ... | @@ -37,8 +37,8 @@ cd build-debug |
| 37 | # Override the cache directories because they won't actually help other CI runs | 37 | # Override the cache directories because they won't actually help other CI runs |
| 38 | # which will be testing alternate versions of zig, and ultimately would just | 38 | # which will be testing alternate versions of zig, and ultimately would just |
| 39 | # fill up space on the hard drive for no reason. | 39 | # fill up space on the hard drive for no reason. |
| 40 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 40 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 41 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 41 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 42 | 42 | ||
| 43 | cmake .. \ | 43 | cmake .. \ |
| 44 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ | 44 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ |
| ... | @@ -75,7 +75,7 @@ stage3-debug/bin/zig build test docs \ | ... | @@ -75,7 +75,7 @@ stage3-debug/bin/zig build test docs \ |
| 75 | -Dstatic-llvm \ | 75 | -Dstatic-llvm \ |
| 76 | -Dtarget=native-native-musl \ | 76 | -Dtarget=native-native-musl \ |
| 77 | --search-prefix "$PREFIX" \ | 77 | --search-prefix "$PREFIX" \ |
| 78 | --zig-lib-dir "$(pwd)/../lib" | 78 | --zig-lib-dir "$PWD/../lib" |
| 79 | 79 | ||
| 80 | # Look for HTML errors. | 80 | # Look for HTML errors. |
| 81 | # TODO: move this to a build.zig flag (-Denable-tidy) | 81 | # TODO: move this to a build.zig flag (-Denable-tidy) |
| ... | @@ -88,8 +88,8 @@ rm -rf ../build-new | ... | @@ -88,8 +88,8 @@ rm -rf ../build-new |
| 88 | mkdir ../build-new | 88 | mkdir ../build-new |
| 89 | cd ../build-new | 89 | cd ../build-new |
| 90 | 90 | ||
| 91 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 91 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 92 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 92 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 93 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | 93 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 94 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | 94 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 95 | 95 | ||
| ... | @@ -113,5 +113,5 @@ stage3/bin/zig build -p stage4 \ | ... | @@ -113,5 +113,5 @@ stage3/bin/zig build -p stage4 \ |
| 113 | -Dtarget=native-native-musl \ | 113 | -Dtarget=native-native-musl \ |
| 114 | -Dno-lib \ | 114 | -Dno-lib \ |
| 115 | --search-prefix "$PREFIX" \ | 115 | --search-prefix "$PREFIX" \ |
| 116 | --zig-lib-dir "$(pwd)/../lib" | 116 | --zig-lib-dir "$PWD/../lib" |
| 117 | stage4/bin/zig test ../test/behavior.zig | 117 | stage4/bin/zig test ../test/behavior.zig |
ci/x86_64-linux-release.sh+6-6| ... | @@ -37,8 +37,8 @@ cd build-release | ... | @@ -37,8 +37,8 @@ cd build-release |
| 37 | # Override the cache directories because they won't actually help other CI runs | 37 | # Override the cache directories because they won't actually help other CI runs |
| 38 | # which will be testing alternate versions of zig, and ultimately would just | 38 | # which will be testing alternate versions of zig, and ultimately would just |
| 39 | # fill up space on the hard drive for no reason. | 39 | # fill up space on the hard drive for no reason. |
| 40 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 40 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 41 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 41 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 42 | 42 | ||
| 43 | cmake .. \ | 43 | cmake .. \ |
| 44 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | 44 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ |
| ... | @@ -76,7 +76,7 @@ stage3-release/bin/zig build test docs \ | ... | @@ -76,7 +76,7 @@ stage3-release/bin/zig build test docs \ |
| 76 | -Dstatic-llvm \ | 76 | -Dstatic-llvm \ |
| 77 | -Dtarget=native-native-musl \ | 77 | -Dtarget=native-native-musl \ |
| 78 | --search-prefix "$PREFIX" \ | 78 | --search-prefix "$PREFIX" \ |
| 79 | --zig-lib-dir "$(pwd)/../lib" | 79 | --zig-lib-dir "$PWD/../lib" |
| 80 | 80 | ||
| 81 | # Look for HTML errors. | 81 | # Look for HTML errors. |
| 82 | # TODO: move this to a build.zig flag (-Denable-tidy) | 82 | # TODO: move this to a build.zig flag (-Denable-tidy) |
| ... | @@ -105,8 +105,8 @@ rm -rf ../build-new | ... | @@ -105,8 +105,8 @@ rm -rf ../build-new |
| 105 | mkdir ../build-new | 105 | mkdir ../build-new |
| 106 | cd ../build-new | 106 | cd ../build-new |
| 107 | 107 | ||
| 108 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 108 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 109 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 109 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 110 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | 110 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 111 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | 111 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 112 | 112 | ||
| ... | @@ -130,5 +130,5 @@ stage3/bin/zig build -p stage4 \ | ... | @@ -130,5 +130,5 @@ stage3/bin/zig build -p stage4 \ |
| 130 | -Dtarget=native-native-musl \ | 130 | -Dtarget=native-native-musl \ |
| 131 | -Dno-lib \ | 131 | -Dno-lib \ |
| 132 | --search-prefix "$PREFIX" \ | 132 | --search-prefix "$PREFIX" \ |
| 133 | --zig-lib-dir "$(pwd)/../lib" | 133 | --zig-lib-dir "$PWD/../lib" |
| 134 | stage4/bin/zig test ../test/behavior.zig | 134 | stage4/bin/zig test ../test/behavior.zig |
ci/x86_64-macos-release.sh+4-4| ... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
| 3 | set -x | 3 | set -x |
| 4 | set -e | 4 | set -e |
| 5 | 5 | ||
| 6 | ZIGDIR="$(pwd)" | 6 | ZIGDIR="$PWD" |
| 7 | TARGET="$ARCH-macos-none" | 7 | TARGET="$ARCH-macos-none" |
| 8 | MCPU="baseline" | 8 | MCPU="baseline" |
| 9 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.12.0-dev.467+0345d7866" | 9 | CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.12.0-dev.467+0345d7866" |
| ... | @@ -40,8 +40,8 @@ cd build | ... | @@ -40,8 +40,8 @@ cd build |
| 40 | # Override the cache directories because they won't actually help other CI runs | 40 | # Override the cache directories because they won't actually help other CI runs |
| 41 | # which will be testing alternate versions of zig, and ultimately would just | 41 | # which will be testing alternate versions of zig, and ultimately would just |
| 42 | # fill up space on the hard drive for no reason. | 42 | # fill up space on the hard drive for no reason. |
| 43 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | 43 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 44 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | 44 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 45 | 45 | ||
| 46 | cmake .. \ | 46 | cmake .. \ |
| 47 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 47 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
| ... | @@ -56,7 +56,7 @@ cmake .. \ | ... | @@ -56,7 +56,7 @@ cmake .. \ |
| 56 | make $JOBS install | 56 | make $JOBS install |
| 57 | 57 | ||
| 58 | stage3/bin/zig build test docs \ | 58 | stage3/bin/zig build test docs \ |
| 59 | --zig-lib-dir "$(pwd)/../lib" \ | 59 | --zig-lib-dir "$PWD/../lib" \ |
| 60 | -Denable-macos-sdk \ | 60 | -Denable-macos-sdk \ |
| 61 | -Dstatic-llvm \ | 61 | -Dstatic-llvm \ |
| 62 | -Dskip-non-native \ | 62 | -Dskip-non-native \ |
ci/x86_64-windows-debug.ps1+5-12| ... | @@ -1,19 +1,10 @@ | ... | @@ -1,19 +1,10 @@ |
| 1 | $TARGET = "$($Env:ARCH)-windows-gnu" | 1 | $TARGET = "$($Env:ARCH)-windows-gnu" |
| 2 | $ZIG_LLVM_CLANG_LLD_NAME = "zig+llvm+lld+clang-$TARGET-0.12.0-dev.2073+402fe565a" | 2 | $ZIG_LLVM_CLANG_LLD_NAME = "zig+llvm+lld+clang-$TARGET-0.12.0-dev.2073+402fe565a" |
| 3 | $MCPU = "baseline" | 3 | $MCPU = "baseline" |
| 4 | $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip" | 4 | $PREFIX_PATH = "$($Env:USERPROFILE)\$ZIG_LLVM_CLANG_LLD_NAME" |
| 5 | $PREFIX_PATH = "$(Get-Location)\$ZIG_LLVM_CLANG_LLD_NAME" | ||
| 6 | $ZIG = "$PREFIX_PATH\bin\zig.exe" | 5 | $ZIG = "$PREFIX_PATH\bin\zig.exe" |
| 7 | $ZIG_LIB_DIR = "$(Get-Location)\lib" | 6 | $ZIG_LIB_DIR = "$(Get-Location)\lib" |
| 8 | 7 | ||
| 9 | choco install ninja | ||
| 10 | Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL" | ||
| 11 | Invoke-WebRequest -Uri "$ZIG_LLVM_CLANG_LLD_URL" -OutFile "$ZIG_LLVM_CLANG_LLD_NAME.zip" | ||
| 12 | |||
| 13 | Write-Output "Extracting..." | ||
| 14 | Add-Type -AssemblyName System.IO.Compression.FileSystem ; | ||
| 15 | [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD/$ZIG_LLVM_CLANG_LLD_NAME.zip", "$PWD") | ||
| 16 | |||
| 17 | function CheckLastExitCode { | 8 | function CheckLastExitCode { |
| 18 | if (!$?) { | 9 | if (!$?) { |
| 19 | exit 1 | 10 | exit 1 |
| ... | @@ -43,6 +34,8 @@ Set-Location -Path 'build-debug' | ... | @@ -43,6 +34,8 @@ Set-Location -Path 'build-debug' |
| 43 | -DCMAKE_BUILD_TYPE=Debug ` | 34 | -DCMAKE_BUILD_TYPE=Debug ` |
| 44 | -DCMAKE_C_COMPILER="$($ZIG -Replace "\\", "/");cc;-target;$TARGET;-mcpu=$MCPU" ` | 35 | -DCMAKE_C_COMPILER="$($ZIG -Replace "\\", "/");cc;-target;$TARGET;-mcpu=$MCPU" ` |
| 45 | -DCMAKE_CXX_COMPILER="$($ZIG -Replace "\\", "/");c++;-target;$TARGET;-mcpu=$MCPU" ` | 36 | -DCMAKE_CXX_COMPILER="$($ZIG -Replace "\\", "/");c++;-target;$TARGET;-mcpu=$MCPU" ` |
| 37 | -DCMAKE_AR="$($ZIG -Replace "\\", "/")" ` | ||
| 38 | -DZIG_AR_WORKAROUND=ON ` | ||
| 46 | -DZIG_TARGET_TRIPLE="$TARGET" ` | 39 | -DZIG_TARGET_TRIPLE="$TARGET" ` |
| 47 | -DZIG_TARGET_MCPU="$MCPU" ` | 40 | -DZIG_TARGET_MCPU="$MCPU" ` |
| 48 | -DZIG_STATIC=ON ` | 41 | -DZIG_STATIC=ON ` |
| ... | @@ -85,10 +78,10 @@ CheckLastExitCode | ... | @@ -85,10 +78,10 @@ CheckLastExitCode |
| 85 | --mod build_options config.zig | 78 | --mod build_options config.zig |
| 86 | CheckLastExitCode | 79 | CheckLastExitCode |
| 87 | 80 | ||
| 88 | Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" | 81 | Import-Module "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" |
| 89 | CheckLastExitCode | 82 | CheckLastExitCode |
| 90 | 83 | ||
| 91 | Enter-VsDevShell -VsInstallPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" ` | 84 | Enter-VsDevShell -VsInstallPath "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" ` |
| 92 | -DevCmdArguments '-arch=x64 -no_logo' ` | 85 | -DevCmdArguments '-arch=x64 -no_logo' ` |
| 93 | -StartInPath $(Get-Location) | 86 | -StartInPath $(Get-Location) |
| 94 | CheckLastExitCode | 87 | CheckLastExitCode |
ci/x86_64-windows-release.ps1+5-12| ... | @@ -1,19 +1,10 @@ | ... | @@ -1,19 +1,10 @@ |
| 1 | $TARGET = "$($Env:ARCH)-windows-gnu" | 1 | $TARGET = "$($Env:ARCH)-windows-gnu" |
| 2 | $ZIG_LLVM_CLANG_LLD_NAME = "zig+llvm+lld+clang-$TARGET-0.12.0-dev.2073+402fe565a" | 2 | $ZIG_LLVM_CLANG_LLD_NAME = "zig+llvm+lld+clang-$TARGET-0.12.0-dev.2073+402fe565a" |
| 3 | $MCPU = "baseline" | 3 | $MCPU = "baseline" |
| 4 | $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip" | 4 | $PREFIX_PATH = "$($Env:USERPROFILE)\$ZIG_LLVM_CLANG_LLD_NAME" |
| 5 | $PREFIX_PATH = "$(Get-Location)\$ZIG_LLVM_CLANG_LLD_NAME" | ||
| 6 | $ZIG = "$PREFIX_PATH\bin\zig.exe" | 5 | $ZIG = "$PREFIX_PATH\bin\zig.exe" |
| 7 | $ZIG_LIB_DIR = "$(Get-Location)\lib" | 6 | $ZIG_LIB_DIR = "$(Get-Location)\lib" |
| 8 | 7 | ||
| 9 | choco install ninja | ||
| 10 | Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL" | ||
| 11 | Invoke-WebRequest -Uri "$ZIG_LLVM_CLANG_LLD_URL" -OutFile "$ZIG_LLVM_CLANG_LLD_NAME.zip" | ||
| 12 | |||
| 13 | Write-Output "Extracting..." | ||
| 14 | Add-Type -AssemblyName System.IO.Compression.FileSystem ; | ||
| 15 | [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD/$ZIG_LLVM_CLANG_LLD_NAME.zip", "$PWD") | ||
| 16 | |||
| 17 | function CheckLastExitCode { | 8 | function CheckLastExitCode { |
| 18 | if (!$?) { | 9 | if (!$?) { |
| 19 | exit 1 | 10 | exit 1 |
| ... | @@ -43,6 +34,8 @@ Set-Location -Path 'build-release' | ... | @@ -43,6 +34,8 @@ Set-Location -Path 'build-release' |
| 43 | -DCMAKE_BUILD_TYPE=Release ` | 34 | -DCMAKE_BUILD_TYPE=Release ` |
| 44 | -DCMAKE_C_COMPILER="$($ZIG -Replace "\\", "/");cc;-target;$TARGET;-mcpu=$MCPU" ` | 35 | -DCMAKE_C_COMPILER="$($ZIG -Replace "\\", "/");cc;-target;$TARGET;-mcpu=$MCPU" ` |
| 45 | -DCMAKE_CXX_COMPILER="$($ZIG -Replace "\\", "/");c++;-target;$TARGET;-mcpu=$MCPU" ` | 36 | -DCMAKE_CXX_COMPILER="$($ZIG -Replace "\\", "/");c++;-target;$TARGET;-mcpu=$MCPU" ` |
| 37 | -DCMAKE_AR="$($ZIG -Replace "\\", "/")" ` | ||
| 38 | -DZIG_AR_WORKAROUND=ON ` | ||
| 46 | -DZIG_TARGET_TRIPLE="$TARGET" ` | 39 | -DZIG_TARGET_TRIPLE="$TARGET" ` |
| 47 | -DZIG_TARGET_MCPU="$MCPU" ` | 40 | -DZIG_TARGET_MCPU="$MCPU" ` |
| 48 | -DZIG_STATIC=ON ` | 41 | -DZIG_STATIC=ON ` |
| ... | @@ -84,10 +77,10 @@ CheckLastExitCode | ... | @@ -84,10 +77,10 @@ CheckLastExitCode |
| 84 | --mod build_options config.zig | 77 | --mod build_options config.zig |
| 85 | CheckLastExitCode | 78 | CheckLastExitCode |
| 86 | 79 | ||
| 87 | Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" | 80 | Import-Module "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" |
| 88 | CheckLastExitCode | 81 | CheckLastExitCode |
| 89 | 82 | ||
| 90 | Enter-VsDevShell -VsInstallPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" ` | 83 | Enter-VsDevShell -VsInstallPath "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" ` |
| 91 | -DevCmdArguments '-arch=x64 -no_logo' ` | 84 | -DevCmdArguments '-arch=x64 -no_logo' ` |
| 92 | -StartInPath $(Get-Location) | 85 | -StartInPath $(Get-Location) |
| 93 | CheckLastExitCode | 86 | CheckLastExitCode |