Skip to content

Commit 296ab6b

Browse files
committed
[GHA] Add Windows workflow
1 parent 1c24d33 commit 296ab6b

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/windows.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Windows Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "7_88"
8+
pull_request:
9+
branches:
10+
- "7_88"
11+
12+
jobs:
13+
build:
14+
name: Build cURL Windows
15+
runs-on: windows-2019
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Install build dependencies
24+
run: |
25+
choco install nasm strawberryperl -y
26+
echo "C:\Program Files\NASM" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
27+
echo "C:\Strawberry\perl\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
28+
29+
# https://learn.microsoft.com/en-us/visualstudio/releases/2019/history
30+
- name: Check available VS versions
31+
shell: cmd
32+
run: |
33+
where vswhere.exe
34+
vswhere.exe -all -prerelease -format json
35+
36+
- name: Add msbuild to PATH
37+
uses: microsoft/setup-msbuild@v2
38+
with:
39+
msbuild-architecture: x64
40+
# https://github.com/microsoft/setup-msbuild?tab=readme-ov-file#specifying-specific-versions-of-visual-studio-optional
41+
# vs-version: "[16.11,16.12)"
42+
43+
- name: Build All Configurations
44+
shell: cmd
45+
run: |
46+
CALL build.cmd
47+
48+
- name: Upload Build Artifacts
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: curl-windows-builds
52+
path: out/*.zip
53+
if-no-files-found: error
54+
retention-days: 7

0 commit comments

Comments
 (0)