File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
.github/actions/install-zig Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 12
12
run : |
13
13
echo "zig_version=${ZIG_VERSION}" >> "$GITHUB_OUTPUT"
14
14
15
+ - name : Create zig install folder
16
+ shell : bash
17
+ run : mkdir /usr/local/zig
18
+
15
19
# TODO: this is only needed because we are using a development version of zig,
16
20
# since we need https://github.com/ziglang/zig/pull/21253 to be included.
17
21
# Development versions of zig are not kept alive forever, but get overridden.
20
24
id : cache-zig
21
25
uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
22
26
with :
23
- path : zig
27
+ path : /usr/local/ zig
24
28
key : zig-${{ runner.os }}-${{ runner.arch }}-${{ steps.store.outputs.zig_version }}
25
29
26
30
- name : Download zig
@@ -42,13 +46,13 @@ runs:
42
46
EOF
43
47
chmod +x zig-linux-$(uname -m)-${{ steps.store.outputs.zig_version }}/zig-c++
44
48
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/
46
50
47
51
- name : Setup zig
48
52
shell : bash
49
53
id : zig
50
54
run : |
51
- echo "$(pwd) /zig" >> $GITHUB_PATH
55
+ echo "/usr/local /zig" >> $GITHUB_PATH
52
56
echo "CC=zig-cc" >> $GITHUB_ENV
53
57
echo "CXX=zig-c++" >> $GITHUB_ENV
54
58
echo "AR=zig ar" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments