|
1 | 1 | name: CI_build |
2 | | - |
3 | 2 | on: [push, pull_request] |
4 | | - |
5 | 3 | jobs: |
6 | 4 | build: |
7 | | - |
8 | 5 | runs-on: windows-latest |
9 | 6 | strategy: |
10 | 7 | fail-fast: false |
11 | 8 | matrix: |
12 | 9 | build_platform: [x64, x86, ARM64] |
13 | | - |
14 | 10 | steps: |
15 | 11 | - name: Checkout repo |
16 | 12 | uses: actions/checkout@v4 |
17 | 13 |
|
18 | 14 | - name: Add msbuild to PATH |
19 | 15 | uses: microsoft/setup-msbuild@v2 |
20 | 16 |
|
21 | | - - name: Add nmake |
22 | | - if: matrix.build_platform == 'ARM64' |
23 | | - uses: ilammy/msvc-dev-cmd@v1 |
24 | | - with: |
25 | | - arch: amd64_arm64 |
| 17 | + - name: Configure curl (${{ matrix.build_platform }}) |
| 18 | + run: | |
| 19 | + $arch = "${{ matrix.build_platform }}" -eq "x86" ? "Win32" : "${{ matrix.build_platform }}" |
| 20 | + cmake curl -B curl/build/${{ matrix.build_platform }} -A $arch ` |
| 21 | + -DBUILD_SHARED_LIBS=OFF ` |
| 22 | + -DCURL_STATIC_CRT=ON ` |
| 23 | + -DBUILD_CURL_EXE=OFF ` |
| 24 | + -DCURL_USE_SCHANNEL=ON ` |
| 25 | + -DCURL_USE_OPENSSL=OFF ` |
| 26 | + -DBUILD_TESTING=OFF ` |
| 27 | + -DUSE_LIBPSL=OFF ` |
| 28 | + -DCURL_USE_LIBPSL=OFF ` |
| 29 | + -DUSE_NGHTTP2=OFF ` |
| 30 | + -DUSE_LIBIDN2=OFF |
26 | 31 |
|
27 | | - - name: Add nmake |
28 | | - if: matrix.build_platform == 'x64' || matrix.build_platform == 'x86' |
29 | | - uses: ilammy/msvc-dev-cmd@v1 |
30 | | - with: |
31 | | - arch: ${{ matrix.build_platform }} |
| 32 | + - name: Build curl Release (${{ matrix.build_platform }}) |
| 33 | + run: cmake --build curl/build/${{ matrix.build_platform }} --config Release |
32 | 34 |
|
33 | | - - name: nmake libcurl |
34 | | - working-directory: curl/winbuild |
35 | | - run: | |
36 | | - set WINBUILD_ACKNOWLEDGE_DEPRECATED=yes |
37 | | - nmake /f Makefile.vc mode=static vc=15 RTLIBCFG=static WINBUILD_ACKNOWLEDGE_DEPRECATED=yes MACHINE="${{ matrix.build_platform }}" |
38 | | - nmake /f Makefile.vc mode=static vc=15 RTLIBCFG=static WINBUILD_ACKNOWLEDGE_DEPRECATED=yes DEBUG=yes MACHINE="${{ matrix.build_platform }}" |
| 35 | + - name: Build curl Debug (${{ matrix.build_platform }}) |
| 36 | + run: cmake --build curl/build/${{ matrix.build_platform }} --config Debug |
39 | 37 |
|
40 | | - - name: MSBuild of GUP exe |
| 38 | + - name: Build GUP Release (${{ matrix.build_platform }}) |
41 | 39 | working-directory: vcproj |
42 | | - run: | |
43 | | - msbuild GUP.sln /m /p:configuration="Release" /p:platform="${{ matrix.build_platform }}" |
44 | | - msbuild GUP.sln /m /p:configuration="Debug" /p:platform="${{ matrix.build_platform }}" |
| 40 | + run: msbuild GUP.sln /m /p:configuration="Release" /p:platform="${{ matrix.build_platform }}" |
| 41 | + |
| 42 | + - name: Build GUP Debug (${{ matrix.build_platform }}) |
| 43 | + working-directory: vcproj |
| 44 | + run: msbuild GUP.sln /m /p:configuration="Debug" /p:platform="${{ matrix.build_platform }}" |
45 | 45 |
|
46 | 46 | - name: Archive artifacts for x64 |
47 | 47 | if: matrix.build_platform == 'x64' |
|
0 commit comments