Skip to content

Commit e2ad688

Browse files
committed
wip
Signed-off-by: Federico Di Pierro <[email protected]>
1 parent b2bf438 commit e2ad688

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/actions/install-zig/action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ runs:
1212
run: |
1313
echo "zig_version=${ZIG_VERSION}" >> "$GITHUB_OUTPUT"
1414
15+
- name: Create zig install folder
16+
shell: bash
17+
run: mkdir /usr/local/zig
18+
1519
# TODO: this is only needed because we are using a development version of zig,
1620
# since we need https://github.com/ziglang/zig/pull/21253 to be included.
1721
# Development versions of zig are not kept alive forever, but get overridden.
@@ -20,7 +24,7 @@ runs:
2024
id: cache-zig
2125
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
2226
with:
23-
path: zig
27+
path: /usr/local/zig
2428
key: zig-${{ runner.os }}-${{ runner.arch }}-${{ steps.store.outputs.zig_version }}
2529

2630
- name: Download zig
@@ -42,13 +46,13 @@ runs:
4246
EOF
4347
chmod +x zig-linux-$(uname -m)-${{ steps.store.outputs.zig_version }}/zig-c++
4448
45-
mv zig-linux-$(uname -m)-${{ steps.store.outputs.zig_version }}/ zig/
49+
cp -R zig-linux-$(uname -m)-${{ steps.store.outputs.zig_version }}/* /usr/local/zig/
4650
4751
- name: Setup zig
4852
shell: bash
4953
id: zig
5054
run: |
51-
echo "$(pwd)/zig" >> $GITHUB_PATH
55+
echo "/usr/local/zig" >> $GITHUB_PATH
5256
echo "CC=zig-cc" >> $GITHUB_ENV
5357
echo "CXX=zig-c++" >> $GITHUB_ENV
5458
echo "AR=zig ar" >> $GITHUB_ENV

0 commit comments

Comments
 (0)