2020-10-16 21:33:12 +00:00
|
|
|
name: QPDF Build
|
|
|
|
env:
|
|
|
|
QTEST_COLOR: 1
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- build
|
2020-10-16 22:07:23 +00:00
|
|
|
- build/*
|
2020-10-20 21:28:44 +00:00
|
|
|
paths-ignore:
|
|
|
|
- 'ChangeLog'
|
|
|
|
- 'README*'
|
|
|
|
- 'TODO'
|
2020-10-16 21:33:12 +00:00
|
|
|
pull_request:
|
2020-10-21 18:07:49 +00:00
|
|
|
schedule:
|
|
|
|
# Building regularly with cron makes it safe for us to use
|
|
|
|
# *-latest with runs-on. If a new version of tools or agents comes
|
|
|
|
# out, we'll find out fast if our builds break on it because we
|
|
|
|
# have reliable testing.
|
|
|
|
- cron: '12 4 * * 5'
|
2020-10-16 21:33:12 +00:00
|
|
|
jobs:
|
|
|
|
Distfiles:
|
|
|
|
# Generate distfiles.zip, which is a prerequisite for the mac and
|
|
|
|
# Windows builds. Only the mac and Windows builds actually "need"
|
|
|
|
# it, but declaring all the jobs to need it forces it to run
|
|
|
|
# first.
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Create distfiles.zip'
|
|
|
|
run: build-scripts/make-distfiles
|
|
|
|
- name: 'Upload extra distribution files'
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: distfiles
|
|
|
|
path: distfiles.zip
|
2020-10-24 23:31:09 +00:00
|
|
|
- name: 'Upload external libs'
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: external-libs
|
|
|
|
path: external-libs-dist
|
2020-10-16 21:33:12 +00:00
|
|
|
Linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Generate, build, and test'
|
|
|
|
run: build-scripts/build-linux
|
|
|
|
- name: Upload distribution
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: distribution
|
|
|
|
path: distribution
|
|
|
|
Windows:
|
2020-10-21 18:07:49 +00:00
|
|
|
runs-on: windows-latest
|
2020-10-16 21:33:12 +00:00
|
|
|
needs: Distfiles
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
max-parallel: 4
|
|
|
|
matrix:
|
|
|
|
tool: [msvc, mingw]
|
|
|
|
wordsize: [64, 32]
|
|
|
|
steps:
|
|
|
|
- name: 'Disable git autocrlf'
|
|
|
|
shell: bash
|
|
|
|
run: git config --global core.autocrlf input
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Download distribution files'
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: distfiles
|
2021-05-08 13:12:16 +00:00
|
|
|
path: .
|
2020-10-24 23:31:09 +00:00
|
|
|
- name: 'Download external libs'
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: external-libs
|
|
|
|
path: .
|
2020-10-16 21:33:12 +00:00
|
|
|
- name: 'Build, test, generate binary distributions'
|
|
|
|
shell: cmd
|
|
|
|
run: build-scripts/build-windows.bat ${{ matrix.wordsize }} ${{ matrix.tool }}
|
|
|
|
- name: 'Upload binary distributions'
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: distribution
|
|
|
|
path: distribution
|
|
|
|
macOS:
|
2020-10-21 18:07:49 +00:00
|
|
|
runs-on: macos-latest
|
2020-10-16 21:33:12 +00:00
|
|
|
needs: Distfiles
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Download distribution files'
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: distfiles
|
2020-10-24 23:31:09 +00:00
|
|
|
- name: 'Download external libs'
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: external-libs
|
|
|
|
path: .
|
2020-10-16 21:33:12 +00:00
|
|
|
- name: 'Mac build and test'
|
|
|
|
run: build-scripts/build-mac
|
|
|
|
AppImage:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Distfiles
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Build AppImage'
|
|
|
|
run: build-scripts/build-appimage
|
|
|
|
- name: 'Upload AppImage'
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: distribution
|
|
|
|
path: distribution
|
|
|
|
Linux32:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Distfiles
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Linux 32-bit'
|
|
|
|
run: build-scripts/build-linux32
|
|
|
|
Fuzzers:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Distfiles
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Build Fuzzer'
|
|
|
|
run: build-scripts/build-fuzzer
|
|
|
|
Sanitizers:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Distfiles
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Sanitizer Tests'
|
|
|
|
run: build-scripts/test-sanitizers
|