1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
|
name: QPDF Build
env:
QTEST_COLOR: 1
on:
push:
branches:
- main
- build
- build/*
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'
jobs:
Prebuild:
# Run steps that are needed by the Windows build but are easier to
# build on Linux. Also create the documentation distribution.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Run pre-build steps'
run: build-scripts/prebuild ${{ secrets.GITHUB_TOKEN }}
- name: 'Upload documentation for later build steps'
uses: actions/upload-artifact@v4
with:
name: doc
path: doc.zip
- name: 'Upload external libs'
uses: actions/upload-artifact@v4
with:
name: external-libs
path: external-libs-dist
- name: 'Upload doc distribution'
uses: actions/upload-artifact@v4
with:
name: distribution-prebuild
path: distribution
Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Generate, build, and test'
run: build-scripts/build-linux
- name: Upload distribution
uses: actions/upload-artifact@v4
with:
name: distribution-linux
path: distribution
Windows:
runs-on: windows-latest
needs: Prebuild
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@v4
- name: 'Download documentation'
uses: actions/download-artifact@v4
with:
name: doc
path: .
- name: 'Download external libs'
uses: actions/download-artifact@v4
with:
name: external-libs
path: .
- 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@v4
with:
name: distribution-windows-${{ matrix.wordsize }}-${{ matrix.tool }}
path: distribution
macOS:
runs-on: macos-latest
needs: Prebuild
steps:
- uses: actions/checkout@v4
- name: 'Mac build and test'
run: build-scripts/build-mac
AppImage:
runs-on: ubuntu-latest
needs: Prebuild
steps:
- uses: actions/checkout@v4
- name: 'Build AppImage'
run: build-scripts/build-appimage
- name: 'Upload AppImage'
uses: actions/upload-artifact@v4
with:
name: distribution-appimage
path: distribution
pikepdf:
strategy:
fail-fast: false
max-parallel: 1
matrix:
future: ['', 'future']
runs-on: ubuntu-latest
needs: Prebuild
steps:
- uses: actions/checkout@v4
- name: 'pikepdf'
run: build-scripts/test-pikepdf ${{ matrix.future }}
Sanitizers:
runs-on: ubuntu-latest
needs: Prebuild
steps:
- uses: actions/checkout@v4
- name: 'Sanitizer Tests'
run: build-scripts/test-sanitizers
Zopfli:
runs-on: ubuntu-latest
needs: Prebuild
steps:
- uses: actions/checkout@v4
- name: 'Zopfli Tests'
run: build-scripts/test-zopfli
CodeCov:
runs-on: ubuntu-latest
needs: Prebuild
steps:
- uses: actions/checkout@v4
- name: 'Code Coverage'
run: build-scripts/test-coverage
- id: set_branch
run: |
if [ "${{ github.event_name }}" = "push" ]; then
echo "override_branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
else
echo "override_branch=" >> $GITHUB_OUTPUT
fi
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
override_branch: ${{ steps.set_branch.outputs.override_branch }}
QuickJobs:
runs-on: ubuntu-latest
needs: Prebuild
strategy:
fail-fast: false
max-parallel: 3
matrix:
script:
- build-fuzzer
- pkg-test
- build-linux32
- test-alt-zlib
- test-unsigned-char
- test-c++-next
- build-android-ndk
steps:
- uses: actions/checkout@v4
- name: ${{ matrix.script }}
run: build-scripts/${{ matrix.script }}
MergeArtifacts:
runs-on: ubuntu-latest
needs:
- Prebuild
- Linux
- Windows
- AppImage
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: distribution
pattern: distribution-*
|