mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
CI: use cache directories local to the CI run
Override the cache directories because they won't actually help other CI runs which will be testing alternate versions of zig, and ultimately would just fill up space on the hard drive for no reason. In practice we did see one of the CI servers fill up too many files inside ~/.cache/zig, which caused certain file system operations to start returning ENOSPC, despite the hard drive having plenty of space left.
This commit is contained in:
parent
594158a692
commit
39c3889df1
@ -26,6 +26,13 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
|
|||||||
rm -rf build-debug
|
rm -rf build-debug
|
||||||
mkdir build-debug
|
mkdir build-debug
|
||||||
cd build-debug
|
cd build-debug
|
||||||
|
|
||||||
|
# Override the cache directories because they won't actually help other CI runs
|
||||||
|
# which will be testing alternate versions of zig, and ultimately would just
|
||||||
|
# fill up space on the hard drive for no reason.
|
||||||
|
export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
|
||||||
|
export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
|
||||||
|
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_INSTALL_PREFIX="stage3-debug" \
|
-DCMAKE_INSTALL_PREFIX="stage3-debug" \
|
||||||
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
||||||
|
|||||||
@ -26,6 +26,13 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
|
|||||||
rm -rf build-release
|
rm -rf build-release
|
||||||
mkdir build-release
|
mkdir build-release
|
||||||
cd build-release
|
cd build-release
|
||||||
|
|
||||||
|
# Override the cache directories because they won't actually help other CI runs
|
||||||
|
# which will be testing alternate versions of zig, and ultimately would just
|
||||||
|
# fill up space on the hard drive for no reason.
|
||||||
|
export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
|
||||||
|
export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
|
||||||
|
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_INSTALL_PREFIX="stage3-release" \
|
-DCMAKE_INSTALL_PREFIX="stage3-release" \
|
||||||
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
||||||
|
|||||||
@ -23,6 +23,13 @@ git fetch --tags
|
|||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
|
# Override the cache directories because they won't actually help other CI runs
|
||||||
|
# which will be testing alternate versions of zig, and ultimately would just
|
||||||
|
# fill up space on the hard drive for no reason.
|
||||||
|
export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
|
||||||
|
export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
|
||||||
|
|
||||||
PATH="$HOME/local/bin:$PATH" cmake .. \
|
PATH="$HOME/local/bin:$PATH" cmake .. \
|
||||||
-DCMAKE_INSTALL_PREFIX="stage3-release" \
|
-DCMAKE_INSTALL_PREFIX="stage3-release" \
|
||||||
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
||||||
|
|||||||
@ -26,6 +26,13 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
|
|||||||
rm -rf build-debug
|
rm -rf build-debug
|
||||||
mkdir build-debug
|
mkdir build-debug
|
||||||
cd build-debug
|
cd build-debug
|
||||||
|
|
||||||
|
# Override the cache directories because they won't actually help other CI runs
|
||||||
|
# which will be testing alternate versions of zig, and ultimately would just
|
||||||
|
# fill up space on the hard drive for no reason.
|
||||||
|
export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
|
||||||
|
export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
|
||||||
|
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_INSTALL_PREFIX="stage3-debug" \
|
-DCMAKE_INSTALL_PREFIX="stage3-debug" \
|
||||||
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
||||||
|
|||||||
@ -26,6 +26,13 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
|
|||||||
rm -rf build-release
|
rm -rf build-release
|
||||||
mkdir build-release
|
mkdir build-release
|
||||||
cd build-release
|
cd build-release
|
||||||
|
|
||||||
|
# Override the cache directories because they won't actually help other CI runs
|
||||||
|
# which will be testing alternate versions of zig, and ultimately would just
|
||||||
|
# fill up space on the hard drive for no reason.
|
||||||
|
export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
|
||||||
|
export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
|
||||||
|
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_INSTALL_PREFIX="stage3-release" \
|
-DCMAKE_INSTALL_PREFIX="stage3-release" \
|
||||||
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
||||||
|
|||||||
@ -29,8 +29,16 @@ git config core.abbrev 9
|
|||||||
git fetch --unshallow || true
|
git fetch --unshallow || true
|
||||||
git fetch --tags
|
git fetch --tags
|
||||||
|
|
||||||
|
rm -rf build
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
|
# Override the cache directories because they won't actually help other CI runs
|
||||||
|
# which will be testing alternate versions of zig, and ultimately would just
|
||||||
|
# fill up space on the hard drive for no reason.
|
||||||
|
export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
|
||||||
|
export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
|
||||||
|
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_INSTALL_PREFIX="stage3-release" \
|
-DCMAKE_INSTALL_PREFIX="stage3-release" \
|
||||||
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
-DCMAKE_PREFIX_PATH="$PREFIX" \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user