pdfio/.github/workflows/build.yml

45 lines
1.0 KiB
YAML
Raw Normal View History

2021-05-30 16:22:56 +02:00
name: Build
on:
push:
branches: [ master ]
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 zlib1g-dev
- name: make
2021-05-30 18:51:26 +02:00
run: make "COMMONFLAGS=-g -fsanitize=address"
2021-05-30 16:22:56 +02:00
- name: test
env:
ASAN_OPTIONS: leak_check_at_exit=false
run: make test
2021-05-30 18:51:26 +02:00
- name: clang static analyzer
run: cd pappl && make CC=clang "GHA_ERROR=::error::" clang
- name: cppcheck
run: cd pappl && make "GHA_ERROR=::error::" cppcheck
2021-05-30 16:22:56 +02:00
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: make
2021-05-30 18:51:26 +02:00
run: make "COMMONFLAGS=-g -fsanitize=address"
2021-05-30 16:22:56 +02:00
- name: test
run: make test
2021-05-30 18:51:26 +02:00
- name: clang static analyzer
run: cd pappl && make CC=clang "GHA_ERROR=::error::" clang
- name: cppcheck
run: cd pappl && make "GHA_ERROR=::error::" cppcheck