Don't error out when using deprecated functions. #690
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
name: Build | |
on: | |
push: | |
branches: [ master, v1.2.x ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: update build environment | |
run: sudo apt-get update --fix-missing -y | |
- name: install prerequisites | |
run: sudo apt-get install -y avahi-daemon cppcheck libavahi-client-dev libcups2-dev libcupsimage2-dev libgnutls28-dev libjpeg-dev libpam-dev libpng-dev libusb-1.0-0-dev zlib1g-dev | |
- name: configure | |
env: | |
CC: /usr/bin/gcc | |
run: ./configure --enable-debug --enable-maintainer | |
- name: make | |
run: make | |
- name: test | |
env: | |
ASAN_OPTIONS: leak_check_at_exit=false | |
run: make test || cat testsuite/testpappl.log | |
- name: alternate configure | |
run: ./configure --enable-debug --enable-maintainer --enable-tsanitizer | |
- name: alternate make | |
run: make clean && make | |
- name: alternate test | |
run: make test || cat testsuite/testpappl.log | |
- name: clang static analyzer | |
run: cd pappl && make CC=clang "GHA_ERROR=::error::" clang | |
- name: cppcheck | |
run: cd pappl && make "GHA_ERROR=::error::" cppcheck | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install prerequisites | |
run: brew install cppcheck libjpeg libpng libusb | |
- name: configure | |
run: ./configure --enable-debug --enable-maintainer --enable-sanitizer | |
- name: make | |
run: make | |
- name: test | |
run: make test || cat testsuite/testpappl.log | |
- name: alternate configure | |
run: ./configure --enable-debug --enable-maintainer --enable-tsanitizer | |
- name: alternate make | |
run: make clean && make | |
- name: alternate test | |
run: make test || cat testsuite/testpappl.log | |
- name: clang static analyzer | |
run: cd pappl && make "GHA_ERROR=::error::" clang | |
- name: cppcheck | |
run: cd pappl && make "GHA_ERROR=::error::" cppcheck | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup-msbuild | |
uses: microsoft/setup-msbuild@v1.0.2 | |
- name: nuget restore | |
run: cd vcnet; nuget restore pappl.sln | |
- name: msbuild | |
run: cd vcnet; msbuild pappl.sln | |
- name: test | |
run: cd vcnet; ./copy-dlls.bat x64\Debug; cd x64\Debug; ./testpappl -c -l testpappl.log -o testpappl.output -t api,client,pwg-raster | |