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