This commit is contained in:
@@ -18,25 +18,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: ${{ env.ZIG_VERSION }}
|
version: ${{ env.ZIG_VERSION }}
|
||||||
|
|
||||||
- name: Environment probe
|
- name: Create the fetch temp dir zig assumes
|
||||||
run: |
|
run: mkdir -p "${ZIG_GLOBAL_CACHE_DIR:?}/tmp"
|
||||||
echo "HOME=$HOME"
|
|
||||||
env | grep -i zig || true
|
|
||||||
echo "--- global cache candidates ---"
|
|
||||||
for d in "$ZIG_GLOBAL_CACHE_DIR" "$HOME/.cache/zig"; do
|
|
||||||
[ -n "$d" ] && { echo "dir: $d"; ls -la "$d" 2>&1 | head -10; }
|
|
||||||
done
|
|
||||||
echo "--- local cache ---"
|
|
||||||
ls -la .zig-cache 2>&1 | head -10
|
|
||||||
|
|
||||||
- name: Reproduce fetch failure
|
- name: Fetch dependencies and configure
|
||||||
run: |
|
run: zig build --help > /dev/null && echo "configure OK, dependencies fetched"
|
||||||
zig build --help >/dev/null 2>&1 || true
|
|
||||||
zig build test 2>&1 | head -5 || true
|
|
||||||
|
|
||||||
- name: Attempt fix (create tmp dirs) and retry fetch
|
|
||||||
run: |
|
|
||||||
for d in "$ZIG_GLOBAL_CACHE_DIR" "$HOME/.cache/zig"; do
|
|
||||||
[ -n "$d" ] && mkdir -p "$d/tmp" "$d/p" && echo "created $d/tmp and $d/p"
|
|
||||||
done
|
|
||||||
zig build test 2>&1 | head -5
|
|
||||||
|
|||||||
Reference in New Issue
Block a user