| author | |
| committer | |
| log | 1cbfdb42449f25cf996f4492736dbf8722ab3f09 |
| tree | 7b339df4f5910fead95a3870b6eabb99cb4be7e7 |
| parent | 798bb0bc61284be3948272bb2085912534feb8bd |
Otherwise the disk just keeps getting filled up.
Also remove some pointless cleanup commands since the actions/checkout workflow
step already cleans the repository by default.10 files changed, 52 insertions(+), 80 deletions(-)
ci/aarch64-linux-debug.sh+6-10| ... | @@ -19,19 +19,18 @@ export PATH="$HOME/local/bin:$PATH" | ... | @@ -19,19 +19,18 @@ export PATH="$HOME/local/bin:$PATH" |
| 19 | git fetch --unshallow || true | 19 | git fetch --unshallow || true |
| 20 | git fetch --tags | 20 | git fetch --tags |
| 21 | 21 | ||
| 22 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 23 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 24 | |||
| 25 | rm -rf build-debug | ||
| 26 | mkdir build-debug | ||
| 27 | cd build-debug | ||
| 28 | |||
| 29 | # Override the cache directories because they won't actually help other CI runs | 22 | # 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 | 23 | # which will be testing alternate versions of zig, and ultimately would just |
| 31 | # fill up space on the hard drive for no reason. | 24 | # fill up space on the hard drive for no reason. |
| 32 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | 25 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 33 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | 26 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 34 | 27 | ||
| 28 | mkdir build-debug | ||
| 29 | cd build-debug | ||
| 30 | |||
| 31 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 32 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 33 | |||
| 35 | cmake .. \ | 34 | cmake .. \ |
| 36 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ | 35 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ |
| 37 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 36 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
| ... | @@ -66,12 +65,9 @@ stage3-debug/bin/zig build test docs \ | ... | @@ -66,12 +65,9 @@ stage3-debug/bin/zig build test docs \ |
| 66 | # Ensure that updating the wasm binary from this commit will result in a viable build. | 65 | # Ensure that updating the wasm binary from this commit will result in a viable build. |
| 67 | stage3-debug/bin/zig build update-zig1 | 66 | stage3-debug/bin/zig build update-zig1 |
| 68 | 67 | ||
| 69 | rm -rf ../build-new | ||
| 70 | mkdir ../build-new | 68 | mkdir ../build-new |
| 71 | cd ../build-new | 69 | cd ../build-new |
| 72 | 70 | ||
| 73 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | ||
| 74 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | ||
| 75 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | 71 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 76 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | 72 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 77 | 73 |
ci/aarch64-linux-release.sh+6-10| ... | @@ -19,19 +19,18 @@ export PATH="$HOME/local/bin:$PATH" | ... | @@ -19,19 +19,18 @@ export PATH="$HOME/local/bin:$PATH" |
| 19 | git fetch --unshallow || true | 19 | git fetch --unshallow || true |
| 20 | git fetch --tags | 20 | git fetch --tags |
| 21 | 21 | ||
| 22 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 23 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 24 | |||
| 25 | rm -rf build-release | ||
| 26 | mkdir build-release | ||
| 27 | cd build-release | ||
| 28 | |||
| 29 | # Override the cache directories because they won't actually help other CI runs | 22 | # 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 | 23 | # which will be testing alternate versions of zig, and ultimately would just |
| 31 | # fill up space on the hard drive for no reason. | 24 | # fill up space on the hard drive for no reason. |
| 32 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | 25 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 33 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | 26 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 34 | 27 | ||
| 28 | mkdir build-release | ||
| 29 | cd build-release | ||
| 30 | |||
| 31 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 32 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 33 | |||
| 35 | cmake .. \ | 34 | cmake .. \ |
| 36 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | 35 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ |
| 37 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 36 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
| ... | @@ -82,12 +81,9 @@ diff stage3-release/bin/zig stage4-release/bin/zig | ... | @@ -82,12 +81,9 @@ diff stage3-release/bin/zig stage4-release/bin/zig |
| 82 | # Ensure that updating the wasm binary from this commit will result in a viable build. | 81 | # Ensure that updating the wasm binary from this commit will result in a viable build. |
| 83 | stage3-release/bin/zig build update-zig1 | 82 | stage3-release/bin/zig build update-zig1 |
| 84 | 83 | ||
| 85 | rm -rf ../build-new | ||
| 86 | mkdir ../build-new | 84 | mkdir ../build-new |
| 87 | cd ../build-new | 85 | cd ../build-new |
| 88 | 86 | ||
| 89 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | ||
| 90 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | ||
| 91 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | 87 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 92 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | 88 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 93 | 89 |
ci/aarch64-macos-debug.sh+3-4| ... | @@ -26,16 +26,15 @@ cd $ZIGDIR | ... | @@ -26,16 +26,15 @@ cd $ZIGDIR |
| 26 | git fetch --unshallow || true | 26 | git fetch --unshallow || true |
| 27 | git fetch --tags | 27 | git fetch --tags |
| 28 | 28 | ||
| 29 | rm -rf build-debug | ||
| 30 | mkdir build-debug | ||
| 31 | cd build-debug | ||
| 32 | |||
| 33 | # 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 |
| 34 | # 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 |
| 35 | # fill up space on the hard drive for no reason. | 31 | # fill up space on the hard drive for no reason. |
| 36 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | 32 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 37 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | 33 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 38 | 34 | ||
| 35 | mkdir build-debug | ||
| 36 | cd build-debug | ||
| 37 | |||
| 39 | PATH="$HOME/local/bin:$PATH" cmake .. \ | 38 | PATH="$HOME/local/bin:$PATH" cmake .. \ |
| 40 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ | 39 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ |
| 41 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 40 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
ci/aarch64-macos-release.sh+3-4| ... | @@ -26,16 +26,15 @@ cd $ZIGDIR | ... | @@ -26,16 +26,15 @@ cd $ZIGDIR |
| 26 | git fetch --unshallow || true | 26 | git fetch --unshallow || true |
| 27 | git fetch --tags | 27 | git fetch --tags |
| 28 | 28 | ||
| 29 | rm -rf build-release | ||
| 30 | mkdir build-release | ||
| 31 | cd build-release | ||
| 32 | |||
| 33 | # 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 |
| 34 | # 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 |
| 35 | # fill up space on the hard drive for no reason. | 31 | # fill up space on the hard drive for no reason. |
| 36 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | 32 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" |
| 37 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | 33 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" |
| 38 | 34 | ||
| 35 | mkdir build-release | ||
| 36 | cd build-release | ||
| 37 | |||
| 39 | PATH="$HOME/local/bin:$PATH" cmake .. \ | 38 | PATH="$HOME/local/bin:$PATH" cmake .. \ |
| 40 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | 39 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ |
| 41 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 40 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
ci/aarch64-windows.ps1+4-5| ... | @@ -30,17 +30,16 @@ if ((git rev-parse --is-shallow-repository) -eq "true") { | ... | @@ -30,17 +30,16 @@ if ((git rev-parse --is-shallow-repository) -eq "true") { |
| 30 | git fetch --unshallow # `git describe` won't work on a shallow repo | 30 | git fetch --unshallow # `git describe` won't work on a shallow repo |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | Write-Output "Building from source..." | ||
| 34 | Remove-Item -Path 'build-release' -Recurse -Force -ErrorAction Ignore | ||
| 35 | New-Item -Path 'build-release' -ItemType Directory | ||
| 36 | Set-Location -Path 'build-release' | ||
| 37 | |||
| 38 | # Override the cache directories because they won't actually help other CI runs | 33 | # Override the cache directories because they won't actually help other CI runs |
| 39 | # which will be testing alternate versions of zig, and ultimately would just | 34 | # which will be testing alternate versions of zig, and ultimately would just |
| 40 | # fill up space on the hard drive for no reason. | 35 | # fill up space on the hard drive for no reason. |
| 41 | $Env:ZIG_GLOBAL_CACHE_DIR="$(Get-Location)\zig-global-cache" | 36 | $Env:ZIG_GLOBAL_CACHE_DIR="$(Get-Location)\zig-global-cache" |
| 42 | $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache" | 37 | $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache" |
| 43 | 38 | ||
| 39 | Write-Output "Building from source..." | ||
| 40 | New-Item -Path 'build-release' -ItemType Directory | ||
| 41 | Set-Location -Path 'build-release' | ||
| 42 | |||
| 44 | # CMake gives a syntax error when file paths with backward slashes are used. | 43 | # CMake gives a syntax error when file paths with backward slashes are used. |
| 45 | # Here, we use forward slashes only to work around this. | 44 | # Here, we use forward slashes only to work around this. |
| 46 | & cmake .. ` | 45 | & cmake .. ` |
ci/x86_64-linux-debug.sh+8-14| ... | @@ -19,26 +19,23 @@ export PATH="$HOME/deps/wasmtime-v29.0.0-$ARCH-linux:$HOME/deps/qemu-linux-x86_6 | ... | @@ -19,26 +19,23 @@ export PATH="$HOME/deps/wasmtime-v29.0.0-$ARCH-linux:$HOME/deps/qemu-linux-x86_6 |
| 19 | git fetch --unshallow || true | 19 | git fetch --unshallow || true |
| 20 | git fetch --tags | 20 | git fetch --tags |
| 21 | 21 | ||
| 22 | # Override the cache directories because they won't actually help other CI runs | ||
| 23 | # which will be testing alternate versions of zig, and ultimately would just | ||
| 24 | # fill up space on the hard drive for no reason. | ||
| 25 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | ||
| 26 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | ||
| 27 | |||
| 22 | # Test building from source without LLVM. | 28 | # Test building from source without LLVM. |
| 23 | git clean -fd | ||
| 24 | rm -rf zig-out | ||
| 25 | cc -o bootstrap bootstrap.c | 29 | cc -o bootstrap bootstrap.c |
| 26 | ./bootstrap | 30 | ./bootstrap |
| 27 | ./zig2 build -Dno-lib | 31 | ./zig2 build -Dno-lib |
| 28 | ./zig-out/bin/zig test test/behavior.zig | 32 | ./zig-out/bin/zig test test/behavior.zig |
| 29 | 33 | ||
| 30 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 31 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 32 | |||
| 33 | rm -rf build-debug | ||
| 34 | mkdir build-debug | 34 | mkdir build-debug |
| 35 | cd build-debug | 35 | cd build-debug |
| 36 | 36 | ||
| 37 | # Override the cache directories because they won't actually help other CI runs | 37 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 38 | # which will be testing alternate versions of zig, and ultimately would just | 38 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 39 | # fill up space on the hard drive for no reason. | ||
| 40 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | ||
| 41 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | ||
| 42 | 39 | ||
| 43 | cmake .. \ | 40 | cmake .. \ |
| 44 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ | 41 | -DCMAKE_INSTALL_PREFIX="stage3-debug" \ |
| ... | @@ -76,12 +73,9 @@ stage3-debug/bin/zig build test docs \ | ... | @@ -76,12 +73,9 @@ stage3-debug/bin/zig build test docs \ |
| 76 | # Ensure that updating the wasm binary from this commit will result in a viable build. | 73 | # Ensure that updating the wasm binary from this commit will result in a viable build. |
| 77 | stage3-debug/bin/zig build update-zig1 | 74 | stage3-debug/bin/zig build update-zig1 |
| 78 | 75 | ||
| 79 | rm -rf ../build-new | ||
| 80 | mkdir ../build-new | 76 | mkdir ../build-new |
| 81 | cd ../build-new | 77 | cd ../build-new |
| 82 | 78 | ||
| 83 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | ||
| 84 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | ||
| 85 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | 79 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 86 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | 80 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 87 | 81 |
ci/x86_64-linux-release.sh+8-14| ... | @@ -19,26 +19,23 @@ export PATH="$HOME/deps/wasmtime-v29.0.0-$ARCH-linux:$HOME/deps/qemu-linux-x86_6 | ... | @@ -19,26 +19,23 @@ export PATH="$HOME/deps/wasmtime-v29.0.0-$ARCH-linux:$HOME/deps/qemu-linux-x86_6 |
| 19 | git fetch --unshallow || true | 19 | git fetch --unshallow || true |
| 20 | git fetch --tags | 20 | git fetch --tags |
| 21 | 21 | ||
| 22 | # Override the cache directories because they won't actually help other CI runs | ||
| 23 | # which will be testing alternate versions of zig, and ultimately would just | ||
| 24 | # fill up space on the hard drive for no reason. | ||
| 25 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | ||
| 26 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | ||
| 27 | |||
| 22 | # Test building from source without LLVM. | 28 | # Test building from source without LLVM. |
| 23 | git clean -fd | ||
| 24 | rm -rf zig-out | ||
| 25 | cc -o bootstrap bootstrap.c | 29 | cc -o bootstrap bootstrap.c |
| 26 | ./bootstrap | 30 | ./bootstrap |
| 27 | ./zig2 build -Dno-lib | 31 | ./zig2 build -Dno-lib |
| 28 | ./zig-out/bin/zig test test/behavior.zig | 32 | ./zig-out/bin/zig test test/behavior.zig |
| 29 | 33 | ||
| 30 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 31 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 32 | |||
| 33 | rm -rf build-release | ||
| 34 | mkdir build-release | 34 | mkdir build-release |
| 35 | cd build-release | 35 | cd build-release |
| 36 | 36 | ||
| 37 | # Override the cache directories because they won't actually help other CI runs | 37 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 38 | # which will be testing alternate versions of zig, and ultimately would just | 38 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 39 | # fill up space on the hard drive for no reason. | ||
| 40 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | ||
| 41 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | ||
| 42 | 39 | ||
| 43 | cmake .. \ | 40 | cmake .. \ |
| 44 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ | 41 | -DCMAKE_INSTALL_PREFIX="stage3-release" \ |
| ... | @@ -92,12 +89,9 @@ diff stage3-release/bin/zig stage4-release/bin/zig | ... | @@ -92,12 +89,9 @@ diff stage3-release/bin/zig stage4-release/bin/zig |
| 92 | # Ensure that updating the wasm binary from this commit will result in a viable build. | 89 | # Ensure that updating the wasm binary from this commit will result in a viable build. |
| 93 | stage3-release/bin/zig build update-zig1 | 90 | stage3-release/bin/zig build update-zig1 |
| 94 | 91 | ||
| 95 | rm -rf ../build-new | ||
| 96 | mkdir ../build-new | 92 | mkdir ../build-new |
| 97 | cd ../build-new | 93 | cd ../build-new |
| 98 | 94 | ||
| 99 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | ||
| 100 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | ||
| 101 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | 95 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 102 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | 96 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| 103 | 97 |
ci/x86_64-macos-release.sh+6-9| ... | @@ -24,24 +24,21 @@ cd $ZIGDIR | ... | @@ -24,24 +24,21 @@ cd $ZIGDIR |
| 24 | git fetch --unshallow || true | 24 | git fetch --unshallow || true |
| 25 | git fetch --tags | 25 | git fetch --tags |
| 26 | 26 | ||
| 27 | # Override the cache directories because they won't actually help other CI runs | ||
| 28 | # which will be testing alternate versions of zig, and ultimately would just | ||
| 29 | # fill up space on the hard drive for no reason. | ||
| 30 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | ||
| 31 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | ||
| 32 | |||
| 27 | # Test building from source without LLVM. | 33 | # Test building from source without LLVM. |
| 28 | git clean -fd | ||
| 29 | rm -rf zig-out | ||
| 30 | cc -o bootstrap bootstrap.c | 34 | cc -o bootstrap bootstrap.c |
| 31 | ./bootstrap | 35 | ./bootstrap |
| 32 | ./zig2 build -Dno-lib | 36 | ./zig2 build -Dno-lib |
| 33 | ./zig-out/bin/zig test test/behavior.zig | 37 | ./zig-out/bin/zig test test/behavior.zig |
| 34 | 38 | ||
| 35 | rm -rf build | ||
| 36 | mkdir build | 39 | mkdir build |
| 37 | cd build | 40 | cd build |
| 38 | 41 | ||
| 39 | # Override the cache directories because they won't actually help other CI runs | ||
| 40 | # which will be testing alternate versions of zig, and ultimately would just | ||
| 41 | # fill up space on the hard drive for no reason. | ||
| 42 | export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache" | ||
| 43 | export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache" | ||
| 44 | |||
| 45 | cmake .. \ | 42 | cmake .. \ |
| 46 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 43 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
| 47 | -DCMAKE_BUILD_TYPE=Release \ | 44 | -DCMAKE_BUILD_TYPE=Release \ |
ci/x86_64-windows-debug.ps1+4-5| ... | @@ -30,17 +30,16 @@ if ((git rev-parse --is-shallow-repository) -eq "true") { | ... | @@ -30,17 +30,16 @@ if ((git rev-parse --is-shallow-repository) -eq "true") { |
| 30 | git fetch --unshallow # `git describe` won't work on a shallow repo | 30 | git fetch --unshallow # `git describe` won't work on a shallow repo |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | Write-Output "Building from source..." | ||
| 34 | Remove-Item -Path 'build-debug' -Recurse -Force -ErrorAction Ignore | ||
| 35 | New-Item -Path 'build-debug' -ItemType Directory | ||
| 36 | Set-Location -Path 'build-debug' | ||
| 37 | |||
| 38 | # Override the cache directories because they won't actually help other CI runs | 33 | # Override the cache directories because they won't actually help other CI runs |
| 39 | # which will be testing alternate versions of zig, and ultimately would just | 34 | # which will be testing alternate versions of zig, and ultimately would just |
| 40 | # fill up space on the hard drive for no reason. | 35 | # fill up space on the hard drive for no reason. |
| 41 | $Env:ZIG_GLOBAL_CACHE_DIR="$(Get-Location)\zig-global-cache" | 36 | $Env:ZIG_GLOBAL_CACHE_DIR="$(Get-Location)\zig-global-cache" |
| 42 | $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache" | 37 | $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache" |
| 43 | 38 | ||
| 39 | Write-Output "Building from source..." | ||
| 40 | New-Item -Path 'build-debug' -ItemType Directory | ||
| 41 | Set-Location -Path 'build-debug' | ||
| 42 | |||
| 44 | # CMake gives a syntax error when file paths with backward slashes are used. | 43 | # CMake gives a syntax error when file paths with backward slashes are used. |
| 45 | # Here, we use forward slashes only to work around this. | 44 | # Here, we use forward slashes only to work around this. |
| 46 | & cmake .. ` | 45 | & cmake .. ` |
ci/x86_64-windows-release.ps1+4-5| ... | @@ -30,17 +30,16 @@ if ((git rev-parse --is-shallow-repository) -eq "true") { | ... | @@ -30,17 +30,16 @@ if ((git rev-parse --is-shallow-repository) -eq "true") { |
| 30 | git fetch --unshallow # `git describe` won't work on a shallow repo | 30 | git fetch --unshallow # `git describe` won't work on a shallow repo |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | Write-Output "Building from source..." | ||
| 34 | Remove-Item -Path 'build-release' -Recurse -Force -ErrorAction Ignore | ||
| 35 | New-Item -Path 'build-release' -ItemType Directory | ||
| 36 | Set-Location -Path 'build-release' | ||
| 37 | |||
| 38 | # Override the cache directories because they won't actually help other CI runs | 33 | # Override the cache directories because they won't actually help other CI runs |
| 39 | # which will be testing alternate versions of zig, and ultimately would just | 34 | # which will be testing alternate versions of zig, and ultimately would just |
| 40 | # fill up space on the hard drive for no reason. | 35 | # fill up space on the hard drive for no reason. |
| 41 | $Env:ZIG_GLOBAL_CACHE_DIR="$(Get-Location)\zig-global-cache" | 36 | $Env:ZIG_GLOBAL_CACHE_DIR="$(Get-Location)\zig-global-cache" |
| 42 | $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache" | 37 | $Env:ZIG_LOCAL_CACHE_DIR="$(Get-Location)\zig-local-cache" |
| 43 | 38 | ||
| 39 | Write-Output "Building from source..." | ||
| 40 | New-Item -Path 'build-release' -ItemType Directory | ||
| 41 | Set-Location -Path 'build-release' | ||
| 42 | |||
| 44 | # CMake gives a syntax error when file paths with backward slashes are used. | 43 | # CMake gives a syntax error when file paths with backward slashes are used. |
| 45 | # Here, we use forward slashes only to work around this. | 44 | # Here, we use forward slashes only to work around this. |
| 46 | & cmake .. ` | 45 | & cmake .. ` |