Skip to content

Commit

Permalink
Try to use vcpkg for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jfantinhardesty committed Jun 28, 2024
1 parent 913f3b9 commit 214472e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
build:
runs-on: ${{ matrix.os }}

env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"

strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
Expand Down Expand Up @@ -46,6 +49,7 @@ jobs:
c_compiler: clang
cpp_compiler: clang++
- os: windows-latest
vcpkgCommitId: '4065f37d0a6628ef17cf6ee15385f9091f1075bc'

steps:
- uses: actions/checkout@v4
Expand All @@ -58,6 +62,14 @@ jobs:
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
if: ${{ matrix.os == 'windows-latest' }}
id: runvcpkg
with:
# The vcpkg.json file, which will be part of cache key computation.
vcpkgJsonGlob: '**/samples/cloudfuse_plugin/vcpkg.json'

- name: Build using CMake on Windows
shell: powershell
if: ${{ matrix.os == 'windows-latest' }}
Expand Down

0 comments on commit 214472e

Please sign in to comment.