diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index cb1882b5d26..30f5acd8c5f 100644 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -11,26 +11,13 @@ jobs: CC_SHORTNAME: VS2019 GENERATOR: Visual Studio 16 2019 FORCE_CXX: OFF - vcpkg_cache: C:/vcpkg/installed steps: - checkout: self submodules: recursive - - task: CacheBeta@0 - inputs: - key: $(Build.SourcesDirectory)/tools/azure-devops/win/install.ps1 - path: $(vcpkg_cache) - displayName: Cache vcpkg - powershell: ./tools/azure-devops/win/install.ps1 displayName: Install Requirements - powershell: ./tools/azure-devops/win/build.ps1 displayName: "Build: $(CC_NAME)" - - task: PublishBuildArtifacts@1 - inputs: - PathtoPublish: '$(Build.ArtifactStagingDirectory)' - ArtifactName: open62541-$(CC_SHORTNAME) - # publishing artifacts from PRs from a fork is currently blocked - condition: succeeded() - displayName: "Publish Artifact: open62541-$(CC_SHORTNAME)" - job: 'win_msys64' displayName: 'Windows (msys64)' @@ -51,13 +38,6 @@ jobs: - powershell: ./tools/azure-devops/win/build.ps1 displayName: "Build: $(CC_NAME)" errorActionPreference: continue # If set to Stop, we only get a truncated exception message. Error is handled by checking exit code - - task: PublishBuildArtifacts@1 - inputs: - PathtoPublish: '$(Build.ArtifactStagingDirectory)' - ArtifactName: open62541-$(CC_SHORTNAME) - # publishing artifacts from PRs from a fork is currently blocked - condition: succeeded() - displayName: "Publish Artifact: open62541-$(CC_SHORTNAME)" - job: 'win_clang' displayName: 'Windows (clang)' @@ -78,10 +58,3 @@ jobs: - powershell: ./tools/azure-devops/win/build.ps1 displayName: "Build: $(CC_NAME)" errorActionPreference: continue # If set to Stop, we only get a truncated exception message. Error is handled by checking exit code - - task: PublishBuildArtifacts@1 - inputs: - PathtoPublish: '$(Build.ArtifactStagingDirectory)' - ArtifactName: open62541-$(CC_SHORTNAME) - # publishing artifacts from PRs from a fork is currently blocked - condition: succeeded() - displayName: "Publish Artifact: open62541-$(CC_SHORTNAME)" diff --git a/tools/azure-devops/win/build.ps1 b/tools/azure-devops/win/build.ps1 index 2e51be07c6a..e05cddd5a68 100644 --- a/tools/azure-devops/win/build.ps1 +++ b/tools/azure-devops/win/build.ps1 @@ -30,7 +30,6 @@ if ($env:CC_SHORTNAME -eq "mingw") { } else { $vcpkg_toolchain = '-DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake"' $vcpkg_triplet = '-DVCPKG_TARGET_TRIPLET="x64-windows"' - New-Item -Force -ItemType directory -Path "C:/vcpkg/installed/x64-windows" } $cmake_cnf="$vcpkg_toolchain", "$vcpkg_triplet", "-G`"$env:GENERATOR`""