File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - " v[0-9]+.[0-9]+.[0-9]+"
7- release :
8- types : [created]
97
108permissions :
119 contents : write
1614 build-binaries :
1715 runs-on : ${{ matrix.os }}
1816 strategy :
17+ fail-fast : false
1918 matrix :
2019 include :
2120 - os : ubuntu-24.04
3837 target : x86_64-pc-windows-gnu
3938 arch : x86_64
4039 platform : windows
40+ - os : windows-2025
41+ target : x86_64-pc-windows-msvc
42+ arch : x86_64
43+ platform : windows
4144
4245 steps :
4346 - name : Checkout code
9295 - name : Build artifacts for Windows
9396 if : matrix.platform == 'windows'
9497 shell : bash
95- run : ./package/build-artifacts-windows.sh
98+ run : ./package/build-artifacts-windows.sh ${{ matrix.target }}
9699
97100 - name : Upload artifact (Linux)
98101 if : matrix.platform == 'linux'
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- TARGET_TRIPLE=" x86_64-pc-windows-gnu "
5+ TARGET_TRIPLE=${1 :? Target triple must be provided}
66
77echo " --- Preparing to build artifacts for Windows target: $TARGET_TRIPLE ---"
88
@@ -14,7 +14,11 @@ TMP_DIR=$(mktemp -d -p "$ARTIFACTS_DIR")
1414trap ' rm -rf -- "$TMP_DIR"' EXIT
1515
1616echo " --- Building backend ---"
17- (cd backend && STATIC_DIR=./static cargo zigbuild --release --target " $TARGET_TRIPLE " )
17+ if [[ " $TARGET_TRIPLE " == * " -msvc" * ]]; then
18+ (cd backend && STATIC_DIR=./static cargo build --release --target " $TARGET_TRIPLE " )
19+ else
20+ (cd backend && STATIC_DIR=./static cargo zigbuild --release --target " $TARGET_TRIPLE " )
21+ fi
1822
1923echo " --- Building frontend ---"
2024(cd frontend && NOMAP=T pnpm build)
@@ -32,6 +36,6 @@ echo "--- Creating zip archive ---"
3236ZIP_NAME=" $TARGET_TRIPLE .zip"
3337ZIP_PATH=" $ARTIFACTS_DIR /$ZIP_NAME "
3438
35- (cd " $TMP_DIR " && zip -r " ../$ZIP_NAME " .)
39+ (cd " $TMP_DIR " && 7z a -tzip " ../$ZIP_NAME " ./ )
3640
3741echo " --- Artifact created successfully: $ZIP_PATH ---"
You can’t perform that action at this time.
0 commit comments