Update snapcraft build parts to use libcups/pappl stable branches. #145
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 ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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: install PAPPL | |
run: git clone -b v1.4.x https://github.com/michaelrsweet/pappl.git && cd pappl && ./configure --enable-debug && make && sudo make install | |
- name: configure | |
env: | |
CC: /usr/bin/gcc | |
run: ./configure --enable-debug --enable-maintainer | |
- name: make | |
run: make | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install prerequisites | |
run: brew install cppcheck libjpeg libpng libusb openssl@3 pkg-config | |
- name: install PAPPL | |
run: git clone -b v1.4.x https://github.com/michaelrsweet/pappl.git && cd pappl && ./configure --enable-debug && make && sudo make install | |
- name: configure | |
run: ./configure --enable-debug --enable-maintainer --enable-sanitizer | |
- name: make | |
run: make |