Skip to content

Commit

Permalink
refactor(ci): Disable caching of vcpkg artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Dec 24, 2023
1 parent f6a9082 commit fe69e72
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
27 changes: 0 additions & 27 deletions .azure-pipelines/azure-pipelines-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand All @@ -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)'
Expand All @@ -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)"
1 change: 0 additions & 1 deletion tools/azure-devops/win/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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`""
Expand Down

0 comments on commit fe69e72

Please sign in to comment.