2021-05-30 10:22:56 -04:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-linux:
|
|
|
|
|
2023-12-03 20:20:23 -05:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-30 10:22:56 -04:00
|
|
|
|
|
|
|
steps:
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Checkout PDFio sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Update Build Environment
|
2021-05-30 10:22:56 -04:00
|
|
|
run: sudo apt-get update --fix-missing -y
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Install Prerequisites
|
2021-05-30 12:54:15 -04:00
|
|
|
run: sudo apt-get install -y cppcheck zlib1g-dev
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Configure PDFio
|
|
|
|
run: ./configure --enable-debug --enable-sanitizer --enable-maintainer
|
|
|
|
- name: Build PDFio
|
2021-05-30 12:51:26 -04:00
|
|
|
run: make "COMMONFLAGS=-g -fsanitize=address"
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Test PDFio
|
2021-05-30 10:22:56 -04:00
|
|
|
env:
|
|
|
|
ASAN_OPTIONS: leak_check_at_exit=false
|
|
|
|
run: make test
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Run Clang Static Analyzer
|
2021-05-30 12:56:00 -04:00
|
|
|
run: make CC=clang "GHA_ERROR=::error::" clang
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Run cppcheck
|
2021-05-30 12:56:00 -04:00
|
|
|
run: make "GHA_ERROR=::error::" cppcheck
|
2021-05-30 10:22:56 -04:00
|
|
|
|
|
|
|
build-macos:
|
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Checkout PDFio sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Configure PDFio
|
|
|
|
run: ./configure --enable-debug --enable-sanitizer --enable-maintainer
|
|
|
|
- name: Build PDFio
|
2021-05-30 12:51:26 -04:00
|
|
|
run: make "COMMONFLAGS=-g -fsanitize=address"
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Test PDFio
|
2021-05-30 10:22:56 -04:00
|
|
|
run: make test
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Run Clang Static Analyzer
|
2021-05-30 12:56:00 -04:00
|
|
|
run: make CC=clang "GHA_ERROR=::error::" clang
|
2021-07-26 18:42:16 -04:00
|
|
|
|
|
|
|
build-windows:
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Checkout PDFio sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup MSBuild
|
2021-07-26 20:56:28 -04:00
|
|
|
uses: microsoft/setup-msbuild@v1.0.2
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Nuget Restore
|
2021-07-26 21:37:06 -04:00
|
|
|
run: nuget restore pdfio.sln
|
2023-12-03 20:20:23 -05:00
|
|
|
- name: Build PDFio
|
2021-07-26 20:56:28 -04:00
|
|
|
run: msbuild pdfio.sln
|
2024-06-28 19:00:51 -04:00
|
|
|
- name: Test PDFio
|
|
|
|
run: .\runtests.bat x64\Debug
|