mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2024-11-08 14:38:27 +01:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
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 cppcheck zlib1g-dev
|
|
- name: make
|
|
run: make "COMMONFLAGS=-g -fsanitize=address"
|
|
- name: test
|
|
env:
|
|
ASAN_OPTIONS: leak_check_at_exit=false
|
|
run: make test
|
|
- name: clang static analyzer
|
|
run: make CC=clang "GHA_ERROR=::error::" clang
|
|
- name: cppcheck
|
|
run: make "GHA_ERROR=::error::" cppcheck
|
|
|
|
build-macos:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install prerequisites
|
|
run: brew install cppcheck
|
|
- name: make
|
|
run: make "COMMONFLAGS=-g -fsanitize=address"
|
|
- name: test
|
|
run: make test
|
|
- name: clang static analyzer
|
|
run: make CC=clang "GHA_ERROR=::error::" clang
|
|
- name: cppcheck
|
|
run: make "GHA_ERROR=::error::" cppcheck
|