3a5238747e
perhaps we need to update after adding the ppas
87 lines
2.1 KiB
YAML
87 lines
2.1 KiB
YAML
name: Test
|
|
|
|
# to-do:
|
|
# - add a macos test with brew etc.
|
|
# - build with clang/asan/etc. and run the fuzz tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Add libheif PPA
|
|
run: |
|
|
sudo add-apt-repository ppa:strukturag/libde265
|
|
sudo add-apt-repository ppa:strukturag/libheif
|
|
|
|
- name: Update apt
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
run:
|
|
sudo apt-get update -qq -o Acquire::Retries=3
|
|
|
|
- name: Install platform dependencies
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
run:
|
|
sudo apt-get install --fix-missing -qq -o Acquire::Retries=3
|
|
gtk-doc-tools
|
|
gobject-introspection
|
|
python3-pip
|
|
python3-setuptools
|
|
python3-wheel
|
|
libfftw3-dev
|
|
libexif-dev
|
|
libjpeg-turbo8-dev
|
|
libpng-dev
|
|
libwebp-dev
|
|
libtiff5-dev
|
|
libheif-dev
|
|
libexpat1-dev
|
|
libcfitsio-dev
|
|
libgsl-dev
|
|
libmatio-dev
|
|
libnifti-dev
|
|
liborc-0.4-dev
|
|
liblcms2-dev
|
|
libpoppler-glib-dev
|
|
librsvg2-dev
|
|
libgif-dev
|
|
libopenexr-dev
|
|
libpango1.0-dev
|
|
libgsf-1-dev
|
|
libopenslide-dev
|
|
libffi-dev
|
|
|
|
- name: Configure libvips
|
|
run: CFLAGS=-Wall CXXFLAGS=-Wall ./autogen.sh
|
|
--disable-dependency-tracking
|
|
--disable-deprecated
|
|
|
|
- name: Build libvips
|
|
run: make V=0
|
|
|
|
- name: Check libvips
|
|
run: make V=0 check
|
|
|
|
- name: Install libvips
|
|
run: |
|
|
sudo make V=0 install
|
|
sudo ldconfig
|
|
|
|
- name: Install pyvips
|
|
run: pip3 install pyvips pytest
|
|
|
|
- name: Run test suite
|
|
run: python3 -m pytest
|