workaround for lack of sudo in Gitea
Some checks failed
Generic zig build / build (push) Has been cancelled

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

View File

@ -14,7 +14,8 @@ jobs:
with: with:
version: 0.12.0 version: 0.12.0
- uses: elerch/zig-action-cache@v1.1.6 - uses: elerch/zig-action-cache@v1.1.6
- name: Install system dependencies - name: Install system dependencies (Github)
if: env.GITEA_ACTIONS != 'true'
run: | run: |
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)
@ -23,6 +24,16 @@ jobs:
cd ImageMagick-7.1.1-31/ cd ImageMagick-7.1.1-31/
./configure && sudo make install && sudo ldconfig /usr/local/lib ./configure && sudo make install && sudo ldconfig /usr/local/lib
cd .. cd ..
- name: Install system dependencies (Gitea)
if: env.GITEA_ACTIONS == 'true'
run: |
apt-get update
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
tar xzf 7.1.1-31.tar.gz
cd ImageMagick-7.1.1-31/
./configure && make install && ldconfig /usr/local/lib
cd ..
- name: Build project - name: Build project
run: zig build --summary all run: zig build --summary all
- name: Run tests - name: Run tests