From 6303756f6664b8425129bb553f227e0184216293 Mon Sep 17 00:00:00 2001 From: silverqx Date: Fri, 14 Jun 2024 17:42:15 +0200 Subject: [PATCH] workflows create VCPKG_DEFAULT_BINARY_CACHE folder --- .github/workflows/msvc2022-qt6-drivers.yml | 6 ++++++ .github/workflows/msys2-ucrt64-drivers.yml | 6 ++++++ .github/workflows/vcpkg-windows-drivers.yml | 6 ++++++ .github/workflows/vcpkg-windows.yml | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/.github/workflows/msvc2022-qt6-drivers.yml b/.github/workflows/msvc2022-qt6-drivers.yml index dd43c251f..68644c6d7 100644 --- a/.github/workflows/msvc2022-qt6-drivers.yml +++ b/.github/workflows/msvc2022-qt6-drivers.yml @@ -175,6 +175,12 @@ jobs: $vcpkgArchivesPath = Join-Path -Path $env:RUNNER_WORKSPACE -ChildPath vcpkg_archives "VCPKG_DEFAULT_BINARY_CACHE=$vcpkgArchivesPath" >> $env:GITHUB_ENV + - name: vcpkg create binary caching folder + run: | + if (-not (Test-Path $env:VCPKG_DEFAULT_BINARY_CACHE)) { + New-Item -Type Directory $env:VCPKG_DEFAULT_BINARY_CACHE + } + - name: vcpkg needs upgrade? (once per day) run: | $vcpkgUpgradedAtFilepath = "$env:RUNNER_WORKSPACE/.vcpkg_upgraded_at" diff --git a/.github/workflows/msys2-ucrt64-drivers.yml b/.github/workflows/msys2-ucrt64-drivers.yml index 0d1d0f235..54728f0f5 100644 --- a/.github/workflows/msys2-ucrt64-drivers.yml +++ b/.github/workflows/msys2-ucrt64-drivers.yml @@ -166,6 +166,12 @@ jobs: vcpkgArchivesPath=$(cygpath.exe --windows "$RUNNER_WORKSPACE\vcpkg_archives") echo "VCPKG_DEFAULT_BINARY_CACHE=$vcpkgArchivesPath" >> $GITHUB_ENV + - name: vcpkg create binary caching folder + run: | + if (-not (Test-Path $env:VCPKG_DEFAULT_BINARY_CACHE)) { + New-Item -Type Directory $env:VCPKG_DEFAULT_BINARY_CACHE + } + - name: vcpkg needs upgrade? (once per day) run: | $vcpkgUpgradedAtFilepath = "$env:RUNNER_WORKSPACE/.vcpkg_upgraded_at" diff --git a/.github/workflows/vcpkg-windows-drivers.yml b/.github/workflows/vcpkg-windows-drivers.yml index 70d3b843f..69dcc0d0d 100644 --- a/.github/workflows/vcpkg-windows-drivers.yml +++ b/.github/workflows/vcpkg-windows-drivers.yml @@ -134,6 +134,12 @@ jobs: $tripletsPath = Join-Path -Path $vcpkgPath -ChildPath 'triplets' "VCPKG_OVERLAY_TRIPLETS=$tripletsPath" >> $env:GITHUB_ENV + - name: vcpkg create binary caching folder + run: | + if (-not (Test-Path $env:VCPKG_DEFAULT_BINARY_CACHE)) { + New-Item -Type Directory $env:VCPKG_DEFAULT_BINARY_CACHE + } + - name: Self-hosted runner prepare environment run: | 'C:\Program Files\CMake\bin' >> $env:GITHUB_PATH diff --git a/.github/workflows/vcpkg-windows.yml b/.github/workflows/vcpkg-windows.yml index 47ffe4e1a..c29f2858d 100644 --- a/.github/workflows/vcpkg-windows.yml +++ b/.github/workflows/vcpkg-windows.yml @@ -105,6 +105,12 @@ jobs: $tripletsPath = Join-Path -Path $vcpkgPath -ChildPath 'triplets' "VCPKG_OVERLAY_TRIPLETS=$tripletsPath" >> $env:GITHUB_ENV + - name: vcpkg create binary caching folder + run: | + if (-not (Test-Path $env:VCPKG_DEFAULT_BINARY_CACHE)) { + New-Item -Type Directory $env:VCPKG_DEFAULT_BINARY_CACHE + } + - name: Self-hosted runner prepare environment run: | 'C:\Program Files\CMake\bin' >> $env:GITHUB_PATH