workaround for lack of sudo in Gitea
Some checks failed
Generic zig build / build (push) Failing after 6m58s
Some checks failed
Generic zig build / build (push) Failing after 6m58s
This commit is contained in:
parent
4998ac5803
commit
03304374f8
13
.github/workflows/zig-build.yaml
vendored
13
.github/workflows/zig-build.yaml
vendored
|
@ -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 && sudo 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user