pdfio/.github/workflows/build.yml

56 lines
1.2 KiB
YAML
Raw Permalink 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
2021-05-30 18:54:15 +02:00
run: sudo apt-get install -y cppcheck zlib1g-dev
2021-05-30 16:22:56 +02:00
- 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
2021-05-30 18:56:00 +02:00
run: make CC=clang "GHA_ERROR=::error::" clang
2021-05-30 18:51:26 +02:00
- name: cppcheck
2021-05-30 18:56:00 +02:00
run: 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
2021-05-30 18:56:00 +02:00
run: make CC=clang "GHA_ERROR=::error::" clang
2021-07-27 00:42:16 +02:00
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
2021-07-27 03:37:06 +02:00
- name: setup-msbuild
2021-07-27 02:56:28 +02:00
uses: microsoft/setup-msbuild@v1.0.2
2021-07-27 03:37:06 +02:00
- name: nuget restore
run: nuget restore pdfio.sln
- name: msbuild
2021-07-27 02:56:28 +02:00
run: msbuild pdfio.sln