fix Zig setup step in CI (#1252)

This commit is contained in:
Zhao 2022-06-14 02:43:40 +08:00 committed by GitHub
parent 3ca2e70edf
commit e5ebedd3b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -17,9 +17,10 @@ jobs:
submodules: 'recursive'
- name: Setup Zig
run: |
mkdir /zig
curl 'https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz' | tar xJ --strip-components=1 --directory=/zig
ln -s /zig/zig /usr/bin/zig
mkdir -p $HOME/.local/bin $HOME/.local/zig
curl 'https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz' | tar xJ --strip-components=1 --directory=$HOME/.local/zig
ln -s $HOME/.local/zig/zig $HOME/.local/bin/zig
echo "PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV
- name: Build plugin
env:
VERSION: ${{ github.event.inputs.version_number }}