Skip to content

Commit 3c4b263

Browse files
authored
build: statically link Windows (#15)
1 parent 1b62da0 commit 3c4b263

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/script_test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ jobs:
266266

267267
build:
268268
name: "Build quack/${{ matrix.platform }}_${{ matrix.arch }}"
269-
needs: test
270269
runs-on: ${{ matrix.runner }}
271270
strategy:
272271
fail-fast: true

ci/scripts/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ case "$platform" in
5454
esac
5555

5656
case "${platform}/${arch}" in
57+
# vcpkg's Unix triplets already use static library linkage. Windows default
58+
# triplets use DLL linkage, so select the static Windows triplets explicitly.
5759
linux/amd64)
5860
vcpkg_triplet="x64-linux"
5961
;;
@@ -67,10 +69,10 @@ case "${platform}/${arch}" in
6769
vcpkg_triplet="arm64-osx"
6870
;;
6971
windows/amd64)
70-
vcpkg_triplet="x64-windows"
72+
vcpkg_triplet="x64-windows-static"
7173
;;
7274
windows/arm64)
73-
vcpkg_triplet="arm64-windows"
75+
vcpkg_triplet="arm64-windows-static"
7476
;;
7577
*)
7678
printf 'unsupported platform/architecture: %s/%s\n' "$platform" "$arch" >&2

0 commit comments

Comments
 (0)