Skip to content

Commit

Permalink
Faster setup Zig?
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesn committed Mar 6, 2024
1 parent daa3fba commit be98d5b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/actions/setup-zig/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ runs:
shell: bash
run: echo "version=$(cat .zig-version | tr -d '\n ')" >> $GITHUB_OUTPUT

- name: Zig Setup
uses: engineerd/[email protected]
with:
name: zig
url: "https://ziglang.org/builds/zig-linux-x86_64-${{ steps.zig-version.outputs.version }}.tar.xz"
pathInArchive: "zig-linux-x86_64-${{ steps.zig-version.outputs.version }}/zig"
- name: Setup Zig
shell: bash
run: |
curl -sL "https://ziglang.org/builds/zig-linux-x86_64-${{ steps.zig-version.outputs.version }}.tar.xz" > ${{ runner.temp }}/zig.tar.xz
tar -xf ${{ runner.temp }}/zig.tar.xz -C ${{ runner.temp }}
echo "PATH=${{ runner.temp }}/zig-linux-x86_64-${{ steps.zig-version.outputs.version }}:$PATH" >> $GITHUB_ENV

0 comments on commit be98d5b

Please sign in to comment.