From f6d2dff10aee0398501f884c89c88a8139f97fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 8 Sep 2019 12:57:30 +0200 Subject: [PATCH 1/4] Create the src tarball and upload it as an artifact --- azure-pipelines.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b16f4e68..d9394920 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,11 +18,25 @@ jobs: qtbase5-dev qtmultimedia5-dev libpoppler-qt5-dev qtscript5-dev \ libqt5opengl5-dev libglu1-mesa-dev libunarr-dev qtdeclarative5-dev displayName: 'Install dependencies' + - script: | + VERSION="$(cat common/yacreader_global.h | grep '#define VERSION "' | tr -d '#define VERSION' | tr -d '"' )" + .\mktarball.sh $VERSION.$(Build.BuildNumber) + mkdir tarball + cp yacreader-*-src.tar.xz* tarball\ + displayName: 'Create tarball' - script: | export DEFINES_VAR=DEFINES+\=\"BUILD_NUMBER=\\\\\\\"$(Build.BuildNumber)\\\\\\\"\" qmake CONFIG+="unarr" $DEFINES_VAR make displayName: 'Build' + - task: CopyFiles@2 + inputs: + contents: 'tarball\*' + targetFolder: $(Build.ArtifactStagingDirectory) + - task: PublishPipelineArtifact@1 + inputs: + path: $(Build.ArtifactStagingDirectory) + artifactName: src $(Build.BuildNumber) tarball - job: MacOS variables: - group: macos-codesign From e1b5022d84513196dc3c95988c9d120918981201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 8 Sep 2019 13:07:51 +0200 Subject: [PATCH 2/4] Try to create tarball from the right folder --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d9394920..29cab251 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,6 +19,7 @@ jobs: libqt5opengl5-dev libglu1-mesa-dev libunarr-dev qtdeclarative5-dev displayName: 'Install dependencies' - script: | + cd $(Build.SourcesDirectory) VERSION="$(cat common/yacreader_global.h | grep '#define VERSION "' | tr -d '#define VERSION' | tr -d '"' )" .\mktarball.sh $VERSION.$(Build.BuildNumber) mkdir tarball From d66ab77a2b3a9d500779c657790ddccdc024671f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 8 Sep 2019 13:33:34 +0200 Subject: [PATCH 3/4] :facepalm: --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 29cab251..10a7cde5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -21,7 +21,7 @@ jobs: - script: | cd $(Build.SourcesDirectory) VERSION="$(cat common/yacreader_global.h | grep '#define VERSION "' | tr -d '#define VERSION' | tr -d '"' )" - .\mktarball.sh $VERSION.$(Build.BuildNumber) + ./mktarball.sh $VERSION.$(Build.BuildNumber) mkdir tarball cp yacreader-*-src.tar.xz* tarball\ displayName: 'Create tarball' From a9aea3b24972bc14a72e2d72e80b787e811900f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 8 Sep 2019 13:57:09 +0200 Subject: [PATCH 4/4] Fix tarball CopyFiles@2 --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 10a7cde5..dccab02a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,7 +32,8 @@ jobs: displayName: 'Build' - task: CopyFiles@2 inputs: - contents: 'tarball\*' + sourceFolder: $(Build.SourcesDirectory)/tarball + contents: '*' targetFolder: $(Build.ArtifactStagingDirectory) - task: PublishPipelineArtifact@1 inputs: