workaround for lack of sudo in Gitea
Some checks failed
Generic zig build / build (push) Failing after 15s

This commit is contained in:
Emil Lerch 2024-04-30 22:21:38 -07:00
parent 4998ac5803
commit 35598c7c3b
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -16,6 +16,7 @@ jobs:
- uses: elerch/zig-action-cache@v1.1.6 - uses: elerch/zig-action-cache@v1.1.6
- name: Install system dependencies - name: Install system dependencies
run: | run: |
[ "$GITEA_ACTIONS" = "true" ] && alias sudo=''
sudo apt-get update sudo apt-get update
sudo apt-get install fonts-hack # imagemagick (container has imagemagick, but version 6) 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 curl -LOs https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-31.tar.gz