add sudo to actions
This commit is contained in:
parent
b8df9e3610
commit
866a89d8ae
8
.github/workflows/build.yaml
vendored
8
.github/workflows/build.yaml
vendored
|
@ -8,10 +8,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build-zig-0.11.0-amd64-host:
|
build-zig-0.11.0-amd64-host:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Need to use the default container with node and all that, so we can
|
|
||||||
# use JS-based actions like actions/checkout@v3...
|
|
||||||
# container:
|
|
||||||
# image: alpine:3.15.0
|
|
||||||
env:
|
env:
|
||||||
ZIG_VERSION: 0.11.0
|
ZIG_VERSION: 0.11.0
|
||||||
ARCH: x86_64
|
ARCH: x86_64
|
||||||
|
@ -27,8 +23,8 @@ jobs:
|
||||||
- name: Install zig
|
- name: Install zig
|
||||||
run: |
|
run: |
|
||||||
wget -q https://ziglang.org/download/${ZIG_VERSION}/zig-linux-${ARCH}-${ZIG_VERSION}.tar.xz
|
wget -q https://ziglang.org/download/${ZIG_VERSION}/zig-linux-${ARCH}-${ZIG_VERSION}.tar.xz
|
||||||
tar x -C /usr/local -f zig-linux-${ARCH}-${ZIG_VERSION}.tar.xz
|
sudo tar x -C /usr/local -f zig-linux-${ARCH}-${ZIG_VERSION}.tar.xz
|
||||||
ln -s /usr/local/zig-linux-${ARCH}-${ZIG_VERSION}/zig /usr/local/bin/zig
|
sudo ln -s /usr/local/zig-linux-${ARCH}-${ZIG_VERSION}/zig /usr/local/bin/zig
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: zig build test --verbose
|
run: zig build test --verbose
|
||||||
- name: Build example
|
- name: Build example
|
||||||
|
|
4
.github/workflows/zig-mach.yaml
vendored
4
.github/workflows/zig-mach.yaml
vendored
|
@ -29,8 +29,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y jq
|
apt-get update && apt-get install -y jq
|
||||||
file="$(curl -Osw '%{filename_effective}' "$(curl -s https://machengine.org/zig/index.json |jq -r '."'${ZIG_VERSION}'"."x86_64-linux".tarball')")"
|
file="$(curl -Osw '%{filename_effective}' "$(curl -s https://machengine.org/zig/index.json |jq -r '."'${ZIG_VERSION}'"."x86_64-linux".tarball')")"
|
||||||
tar x -C /usr/local -f "${file}"
|
sudo tar x -C /usr/local -f "${file}"
|
||||||
ln -s /usr/local/"${file%%.tar.xz}"/zig /usr/local/bin/zig
|
sudo ln -s /usr/local/"${file%%.tar.xz}"/zig /usr/local/bin/zig
|
||||||
zig version
|
zig version
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: zig build test --verbose
|
run: zig build test --verbose
|
||||||
|
|
4
.github/workflows/zig-nightly.yaml
vendored
4
.github/workflows/zig-nightly.yaml
vendored
|
@ -27,8 +27,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y jq
|
apt-get update && apt-get install -y jq
|
||||||
file="$(curl -Osw '%{filename_effective}' "$(curl -s https://ziglang.org/download/index.json |jq -r '."'${ZIG_VERSION}'"."x86_64-linux".tarball')")"
|
file="$(curl -Osw '%{filename_effective}' "$(curl -s https://ziglang.org/download/index.json |jq -r '."'${ZIG_VERSION}'"."x86_64-linux".tarball')")"
|
||||||
tar x -C /usr/local -f "${file}"
|
sudo tar x -C /usr/local -f "${file}"
|
||||||
ln -s /usr/local/"${file%%.tar.xz}"/zig /usr/local/bin/zig
|
sudo ln -s /usr/local/"${file%%.tar.xz}"/zig /usr/local/bin/zig
|
||||||
zig version
|
zig version
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: zig build test --verbose
|
run: zig build test --verbose
|
||||||
|
|
Loading…
Reference in New Issue
Block a user