Commit 9d1f885f04d6cb63b722b89ece9e0a82831756d4
1 parent
8d6f923e
Build AppImage from pipeline
Showing
2 changed files
with
27 additions
and
0 deletions
azure-pipelines.yml
| @@ -70,3 +70,17 @@ jobs: | @@ -70,3 +70,17 @@ jobs: | ||
| 70 | displayName: 'Mac build and test' | 70 | displayName: 'Mac build and test' |
| 71 | dependsOn: Linux | 71 | dependsOn: Linux |
| 72 | condition: succeeded() | 72 | condition: succeeded() |
| 73 | +- job: AppImage | ||
| 74 | + pool: | ||
| 75 | + vmImage: ubuntu-16.04 | ||
| 76 | + steps: | ||
| 77 | + - script: azure-pipelines/build-appimage | ||
| 78 | + displayName: 'Build AppImage' | ||
| 79 | + - task: PublishBuildArtifacts@1 | ||
| 80 | + inputs: | ||
| 81 | + pathtoPublish: '$(System.DefaultWorkingDirectory)/distribution' | ||
| 82 | + artifactName: distribution | ||
| 83 | + displayName: 'Upload AppImage' | ||
| 84 | + condition: eq(variables['System.PullRequest.IsFork'], 'False') | ||
| 85 | + dependsOn: Linux | ||
| 86 | + condition: succeeded() |
azure-pipelines/build-appimage
0 → 100755
| 1 | +#!/bin/bash | ||
| 2 | +set -ex | ||
| 3 | +(cd appimage; docker build -t qpdfbuild .) | ||
| 4 | +rm -rf /tmp/build | ||
| 5 | +mkdir -p /tmp/build | ||
| 6 | +git clone .git /tmp/build/qpdf | ||
| 7 | +docker run --privileged --rm -v /tmp/build:/tmp/build qpdfbuild | ||
| 8 | +mkdir distribution | ||
| 9 | +cp -p /tmp/build/qpdf/appimage/build/qpdf*AppImage* distribution | ||
| 10 | +for i in distribution/*; do | ||
| 11 | + mv $i $(echo $i | sed -e 's/\.AppImage/-ci.AppImage/') | ||
| 12 | +done | ||
| 13 | +sha256sum distribution/* |