Don't hardcode libpng version in macOS CI #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub actions workflow. | |
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | |
# https://scan.coverity.com/projects/libgd | |
name: Coverity Scan | |
# Only want to analyze official releases, not any pull requests. | |
# The free service doesn't have enough bandwidth for both. | |
on: | |
push: | |
branches: [master, GD-*] | |
jobs: | |
coverity: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
cc: [gcc] | |
runs-on: ${{ matrix.os }} | |
env: | |
CC: ${{ matrix.cc }} | |
steps: | |
- name: Update apt | |
run: sudo apt-get update -qq | |
- name: Install dependencies | |
run: sudo apt-get install -y | |
libavifile-0.7-dev | |
libde265-dev | |
libfreetype-dev | |
libheif-dev | |
libimagequant-dev | |
libjpeg-turbo8-dev | |
libpng-dev | |
libraqm-dev | |
libtiff5-dev | |
libwebp-dev | |
libx265-dev | |
libxpm-dev | |
- uses: actions/checkout@v4 | |
- name: Configure gd | |
run: cmake | |
-DENABLE_CPP=1 | |
-DENABLE_FREETYPE=1 | |
-DENABLE_GD_FORMATS=1 | |
-DENABLE_HEIF=0 | |
-DENABLE_JPEG=1 | |
-DENABLE_PNG=1 | |
-DENABLE_TIFF=1 | |
-DENABLE_WEBP=1 | |
-DBUILD_TEST=1 | |
-B ${{github.workspace}}/build | |
- uses: vapier/coverity-scan-action@v1 | |
with: | |
email: ${{ secrets.COVERITY_SCAN_EMAIL }} | |
token: ${{ secrets.COVERITY_SCAN_TOKEN }} | |
command: make -C ${{github.workspace}}/build |