From 35598c7c3bf119a629d76688e36ad96d7a70f0cf Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 30 Apr 2024 22:21:38 -0700 Subject: [PATCH] workaround for lack of sudo in Gitea --- .github/workflows/zig-build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/zig-build.yaml b/.github/workflows/zig-build.yaml index 57f89b9..9932bfb 100644 --- a/.github/workflows/zig-build.yaml +++ b/.github/workflows/zig-build.yaml @@ -16,6 +16,7 @@ jobs: - uses: elerch/zig-action-cache@v1.1.6 - name: Install system dependencies run: | + [ "$GITEA_ACTIONS" = "true" ] && alias sudo='' sudo apt-get update sudo apt-get install fonts-hack # imagemagick (container has imagemagick, but version 6) curl -LOs https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-31.tar.gz