Skip to content

Commit 5e29e23

Browse files
committed
[.github/workflows/github-actions.yml] Resolve X64-Linux and ARM64-macOS matching triplets issue on vcpkg
1 parent 41819ef commit 5e29e23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/github-actions.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ jobs:
5555

5656
- name: Install vcpkg ports (Windows)
5757
run: ./vcpkg/vcpkg install --triplet "${{ runner.arch }}-${{ runner.os }}" "$(jq '.dependencies[] | select(type == "string")')"
58-
if: steps.cache-vcpkg.outputs.cache-hit != 'true'
58+
if: matrix.os == 'windows-latest' && steps.cache-vcpkg.outputs.cache-hit != 'true'
59+
60+
- name: Install vcpkg ports (macOS, Linux)
61+
run: ./vcpkg/vcpkg install "$(jq '.dependencies[] | select(type == "string")')"
62+
if: matrix.os != 'windows-latest' && steps.cache-vcpkg.outputs.cache-hit != 'true'
5963

6064
- name: configure (with vcpkg on Windows)
6165
working-directory: ./build

0 commit comments

Comments
 (0)