mirror of
https://github.com/qpdf/qpdf.git
synced 2025-02-02 11:58:25 +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'
|
pathtoPublish: '$(System.DefaultWorkingDirectory)/distfiles.zip'
|
||||||
artifactName: distfiles
|
artifactName: distfiles
|
||||||
displayName: 'Upload extra distribution files'
|
displayName: 'Upload extra distribution files'
|
||||||
|
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
||||||
- job: Windows
|
- job: Windows
|
||||||
pool:
|
pool:
|
||||||
vmImage: vs2017-win2016
|
vmImage: vs2017-win2016
|
||||||
@ -38,6 +39,7 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
artifactName: distfiles
|
artifactName: distfiles
|
||||||
downloadPath: $(System.DefaultWorkingDirectory)
|
downloadPath: $(System.DefaultWorkingDirectory)
|
||||||
|
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
||||||
- script: azure-pipelines/build-windows.bat $(wordsize) $(tool)
|
- script: azure-pipelines/build-windows.bat $(wordsize) $(tool)
|
||||||
displayName: 'Build, test, generate binary distributions'
|
displayName: 'Build, test, generate binary distributions'
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
@ -45,6 +47,7 @@ jobs:
|
|||||||
pathtoPublish: '$(System.DefaultWorkingDirectory)/installers'
|
pathtoPublish: '$(System.DefaultWorkingDirectory)/installers'
|
||||||
artifactName: installers
|
artifactName: installers
|
||||||
displayName: 'Upload binary distributions'
|
displayName: 'Upload binary distributions'
|
||||||
|
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
||||||
dependsOn: Linux
|
dependsOn: Linux
|
||||||
condition: succeeded()
|
condition: succeeded()
|
||||||
- job: macOS
|
- job: macOS
|
||||||
@ -56,6 +59,7 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
artifactName: distfiles
|
artifactName: distfiles
|
||||||
downloadPath: $(System.DefaultWorkingDirectory)
|
downloadPath: $(System.DefaultWorkingDirectory)
|
||||||
|
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
||||||
- script: azure-pipelines/build-mac
|
- script: azure-pipelines/build-mac
|
||||||
displayName: 'Mac build and test'
|
displayName: 'Mac build and test'
|
||||||
dependsOn: Linux
|
dependsOn: Linux
|
||||||
|
@ -7,7 +7,9 @@ cd jpeg-9c
|
|||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
cd ..
|
cd ..
|
||||||
unzip distfiles/distfiles.zip
|
if [ -f distfiles/distfiles.zip ]; then
|
||||||
|
unzip distfiles/distfiles.zip
|
||||||
|
fi
|
||||||
./configure --enable-werror --enable-show-failed-test-output
|
./configure --enable-werror --enable-show-failed-test-output
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make -k check
|
make -k check
|
||||||
|
@ -17,7 +17,9 @@ if [[ $tool == mingw ]]; then
|
|||||||
elif [[ $tool == msvc ]]; then
|
elif [[ $tool == msvc ]]; then
|
||||||
cl
|
cl
|
||||||
fi
|
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
|
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
|
unzip qpdf-external-libs-bin.zip
|
||||||
cwd=`pwd`
|
cwd=`pwd`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user