forked from gup4win/wingup
-
Notifications
You must be signed in to change notification settings - Fork 39
65 lines (56 loc) · 2.06 KB
/
CI_build.yml
File metadata and controls
65 lines (56 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI_build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
build_platform: [x64, x86, ARM64]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Configure curl (${{ matrix.build_platform }})
run: |
$arch = "${{ matrix.build_platform }}" -eq "x86" ? "Win32" : "${{ matrix.build_platform }}"
cmake curl -B curl/build/${{ matrix.build_platform }} -A $arch `
-DBUILD_SHARED_LIBS=OFF `
-DCURL_STATIC_CRT=ON `
-DBUILD_CURL_EXE=OFF `
-DCURL_USE_SCHANNEL=ON `
-DCURL_USE_OPENSSL=OFF `
-DBUILD_TESTING=OFF `
-DUSE_LIBPSL=OFF `
-DCURL_USE_LIBPSL=OFF `
-DUSE_NGHTTP2=OFF `
-DUSE_LIBIDN2=OFF
- name: Build curl Release (${{ matrix.build_platform }})
run: cmake --build curl/build/${{ matrix.build_platform }} --config Release
- name: Build curl Debug (${{ matrix.build_platform }})
run: cmake --build curl/build/${{ matrix.build_platform }} --config Debug
- name: Build GUP Release (${{ matrix.build_platform }})
working-directory: vcproj
run: msbuild GUP.sln /m /p:configuration="Release" /p:platform="${{ matrix.build_platform }}"
- name: Build GUP Debug (${{ matrix.build_platform }})
working-directory: vcproj
run: msbuild GUP.sln /m /p:configuration="Debug" /p:platform="${{ matrix.build_platform }}"
- name: Archive artifacts for x64
if: matrix.build_platform == 'x64'
uses: actions/upload-artifact@v4
with:
name: gup_exe_x64
path: bin64\
- name: Archive artifacts for x86
if: matrix.build_platform == 'x86'
uses: actions/upload-artifact@v4
with:
name: gup_exe_x86
path: bin\
- name: Archive artifacts for ARM64
if: matrix.build_platform == 'ARM64'
uses: actions/upload-artifact@v4
with:
name: gup_exe_arm64
path: binarm64\