2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-16 09:37:08 +00:00
qpdf/.github/workflows/main.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

158 lines
4.3 KiB
YAML
Raw Normal View History

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/*
paths-ignore:
- 'ChangeLog'
- 'README*'
- 'TODO'
2020-10-16 21:33:12 +00:00
pull_request:
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:
Prebuild:
# Run steps that are needed by the Windows build but are easier to
# build on Linux. Also create the documentation distribution.
2020-10-16 21:33:12 +00:00
runs-on: ubuntu-latest
steps:
2022-11-17 20:47:03 +00:00
- uses: actions/checkout@v3
- name: 'Run pre-build steps'
run: build-scripts/prebuild ${{ secrets.GITHUB_TOKEN }}
- name: 'Upload documentation for later build steps'
2022-11-17 20:47:03 +00:00
uses: actions/upload-artifact@v3
2020-10-16 21:33:12 +00:00
with:
name: doc
path: doc.zip
- name: 'Upload external libs'
2022-11-17 20:47:03 +00:00
uses: actions/upload-artifact@v3
with:
name: external-libs
path: external-libs-dist
- name: 'Upload doc distribution'
2022-11-17 20:47:03 +00:00
uses: actions/upload-artifact@v3
with:
name: distribution
path: distribution
2020-10-16 21:33:12 +00:00
Linux:
runs-on: ubuntu-latest
steps:
2022-11-17 20:47:03 +00:00
- uses: actions/checkout@v3
2020-10-16 21:33:12 +00:00
- name: 'Generate, build, and test'
run: build-scripts/build-linux
- name: Upload distribution
2022-11-17 20:47:03 +00:00
uses: actions/upload-artifact@v3
2020-10-16 21:33:12 +00:00
with:
name: distribution
path: distribution
Windows:
runs-on: windows-latest
needs: Prebuild
2020-10-16 21:33:12 +00:00
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
2022-11-17 20:47:03 +00:00
- uses: actions/checkout@v3
- name: 'Download documentation'
2022-11-17 20:47:03 +00:00
uses: actions/download-artifact@v3
2020-10-16 21:33:12 +00:00
with:
name: doc
path: .
- name: 'Download external libs'
2022-11-17 20:47:03 +00:00
uses: actions/download-artifact@v3
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'
2022-11-17 20:47:03 +00:00
uses: actions/upload-artifact@v3
2020-10-16 21:33:12 +00:00
with:
name: distribution
path: distribution
macOS:
runs-on: macos-latest
needs: Prebuild
2020-10-16 21:33:12 +00:00
steps:
2022-11-17 20:47:03 +00:00
- uses: actions/checkout@v3
2020-10-16 21:33:12 +00:00
- name: 'Mac build and test'
run: build-scripts/build-mac
AppImage:
runs-on: ubuntu-latest
needs: Prebuild
2020-10-16 21:33:12 +00:00
steps:
2022-11-17 20:47:03 +00:00
- uses: actions/checkout@v3
2020-10-16 21:33:12 +00:00
- name: 'Build AppImage'
run: build-scripts/build-appimage
- name: 'Upload AppImage'
2022-11-17 20:47:03 +00:00
uses: actions/upload-artifact@v3
2020-10-16 21:33:12 +00:00
with:
name: distribution
path: distribution
Linux32:
runs-on: ubuntu-latest
needs: Prebuild
2020-10-16 21:33:12 +00:00
steps:
2022-11-17 20:47:03 +00:00
- uses: actions/checkout@v3
2020-10-16 21:33:12 +00:00
- name: 'Linux 32-bit'
run: build-scripts/build-linux32
2023-02-25 21:05:14 +00:00
pikepdf:
runs-on: ubuntu-latest
needs: Prebuild
steps:
- uses: actions/checkout@v3
- name: 'pikepdf'
run: build-scripts/test-pikepdf
2023-12-16 16:04:41 +00:00
pikepdf-future:
runs-on: ubuntu-latest
# Run after pikepdf to save concurrent runners
needs: pikepdf
steps:
- uses: actions/checkout@v3
- name: 'qpdf + pikepdf with FUTURE'
run: build-scripts/test-pikepdf future
2020-10-16 21:33:12 +00:00
Fuzzers:
runs-on: ubuntu-latest
needs: Prebuild
2020-10-16 21:33:12 +00:00
steps:
2022-11-17 20:47:03 +00:00
- uses: actions/checkout@v3
2020-10-16 21:33:12 +00:00
- name: 'Build Fuzzer'
run: build-scripts/build-fuzzer
Sanitizers:
runs-on: ubuntu-latest
needs: Prebuild
2020-10-16 21:33:12 +00:00
steps:
2022-11-17 20:47:03 +00:00
- uses: actions/checkout@v3
2020-10-16 21:33:12 +00:00
- name: 'Sanitizer Tests'
run: build-scripts/test-sanitizers
UnsignedChar:
runs-on: ubuntu-latest
needs: Prebuild
steps:
2022-11-17 20:47:03 +00:00
- uses: actions/checkout@v3
- name: 'Unsigned Char Tests'
run: build-scripts/test-unsigned-char
2023-12-16 16:12:52 +00:00
CxxNext:
runs-on: ubuntu-latest
# Build after Fuzzers to save concurrent runners
needs: Fuzzers
steps:
- uses: actions/checkout@v3
- name: 'Build with Next C++ standard'
run: build-scripts/test-c++-next