ci: move apt into seperat job

This commit is contained in:
fleaz 2024-05-22 23:56:27 +02:00
parent 7ab5644822
commit c930e9e92a
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083

View file

@ -16,13 +16,16 @@ jobs:
with: with:
go-version: 1.21 go-version: 1.21
- name: Install dependencies
run: |
sudo apt install pkg-config libmagickwand-dev imagemagick gcc libc-dev
- name: Patch ghostsccript thanks to CVE-2018-16509 - name: Patch ghostsccript thanks to CVE-2018-16509
run: | run: |
sudo sed -i '$i<policy domain="coder" rights="read | write" pattern="PDF" />' /etc/ImageMagick-6/policy.xml sudo sed -i '$i<policy domain="coder" rights="read | write" pattern="PDF" />' /etc/ImageMagick-6/policy.xml
- name: Build - name: Build
run: | run: |
sudo apt install pkg-config libmagickwand-dev imagemagick gcc libc-dev
mkdir {previews,dist} mkdir {previews,dist}
go run main.go go run main.go
ls -laR ls -laR