mirror of
https://github.com/qpdf/qpdf.git
synced 2025-02-02 03:48:24 +00:00
Azure pipelines: no artifact upload/download from forks
This commit is contained in:
parent
aa864d2142
commit
4cd1a8f0db
@ -10,6 +10,7 @@ jobs:
|
||||
pathtoPublish: '$(System.DefaultWorkingDirectory)/distfiles.zip'
|
||||
artifactName: distfiles
|
||||
displayName: 'Upload extra distribution files'
|
||||
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
||||
- job: Windows
|
||||
pool:
|
||||
vmImage: vs2017-win2016
|
||||
@ -38,6 +39,7 @@ jobs:
|
||||
inputs:
|
||||
artifactName: distfiles
|
||||
downloadPath: $(System.DefaultWorkingDirectory)
|
||||
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
||||
- script: azure-pipelines/build-windows.bat $(wordsize) $(tool)
|
||||
displayName: 'Build, test, generate binary distributions'
|
||||
- task: PublishBuildArtifacts@1
|
||||
@ -45,6 +47,7 @@ jobs:
|
||||
pathtoPublish: '$(System.DefaultWorkingDirectory)/installers'
|
||||
artifactName: installers
|
||||
displayName: 'Upload binary distributions'
|
||||
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
||||
dependsOn: Linux
|
||||
condition: succeeded()
|
||||
- job: macOS
|
||||
@ -56,6 +59,7 @@ jobs:
|
||||
inputs:
|
||||
artifactName: distfiles
|
||||
downloadPath: $(System.DefaultWorkingDirectory)
|
||||
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
||||
- script: azure-pipelines/build-mac
|
||||
displayName: 'Mac build and test'
|
||||
dependsOn: Linux
|
||||
|
@ -7,7 +7,9 @@ cd jpeg-9c
|
||||
make
|
||||
sudo make install
|
||||
cd ..
|
||||
unzip distfiles/distfiles.zip
|
||||
if [ -f distfiles/distfiles.zip ]; then
|
||||
unzip distfiles/distfiles.zip
|
||||
fi
|
||||
./configure --enable-werror --enable-show-failed-test-output
|
||||
make -j$(nproc)
|
||||
make -k check
|
||||
|
@ -17,7 +17,9 @@ if [[ $tool == mingw ]]; then
|
||||
elif [[ $tool == msvc ]]; then
|
||||
cl
|
||||
fi
|
||||
unzip distfiles/distfiles.zip
|
||||
if [ -f distfiles/distfiles.zip ]; then
|
||||
unzip distfiles/distfiles.zip
|
||||
fi
|
||||
curl -L https://downloads.sourceforge.net/project/qpdf/external-libs/2017-08-21/qpdf-external-libs-bin.zip -o qpdf-external-libs-bin.zip
|
||||
unzip qpdf-external-libs-bin.zip
|
||||
cwd=`pwd`
|
||||
|
Loading…
x
Reference in New Issue
Block a user