diff options
author | Brent Cook <busterb@gmail.com> | 2023-07-04 19:36:38 +0300 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-07-05 11:29:13 +0300 |
commit | 74be614b0c7e6f0affa4ab0bfb9c2eaab75ea470 (patch) | |
tree | b1d8b59f1a7f14f0659662a1eca5df38cfa1e59d | |
parent | 3601512b6134c3c8ec357f650b9934b3f1b281dc (diff) | |
download | portable-74be614b0c7e6f0affa4ab0bfb9c2eaab75ea470.tar.gz portable-74be614b0c7e6f0affa4ab0bfb9c2eaab75ea470.tar.bz2 portable-74be614b0c7e6f0affa4ab0bfb9c2eaab75ea470.zip |
add Windows builder test actions
-rw-r--r-- | .github/workflows/windows_test.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/windows_test.yml b/.github/workflows/windows_test.yml new file mode 100644 index 0000000..ff91f9a --- /dev/null +++ b/.github/workflows/windows_test.yml | |||
@@ -0,0 +1,45 @@ | |||
1 | name: windows_ci | ||
2 | |||
3 | on: [push, pull_request] | ||
4 | |||
5 | jobs: | ||
6 | build-native: | ||
7 | strategy: | ||
8 | matrix: | ||
9 | os: [windows-2019, windows-2022] | ||
10 | arch: [Win32, x64, ARM64] | ||
11 | include: | ||
12 | - generator: "Visual Studio 16 2019" | ||
13 | os: windows-2019 | ||
14 | - generator: "Visual Studio 17 2022" | ||
15 | os: windows-2022 | ||
16 | runs-on: ${{ matrix.os }} | ||
17 | continue-on-error: false | ||
18 | name: ${{ matrix.os }} - ${{ matrix.arch }} | ||
19 | steps: | ||
20 | - uses: msys2/setup-msys2@v2 | ||
21 | with: | ||
22 | update: true | ||
23 | install: >- | ||
24 | autoconf | ||
25 | automake | ||
26 | diffutils | ||
27 | libtool | ||
28 | gcc | ||
29 | git | ||
30 | patch | ||
31 | perl | ||
32 | - uses: actions/checkout@main | ||
33 | - shell: msys2 {0} | ||
34 | run: ./autogen.sh | ||
35 | - shell: cmd | ||
36 | run: cmake -Bbuild -G "${{ matrix.generator }}" -A ${{ matrix.arch }} -DCMAKE_INSTALL_PREFIX=../local | ||
37 | - shell: cmd | ||
38 | run: cmake --build build --config Release | ||
39 | - shell: cmd | ||
40 | if: ${{ matrix.arch != 'ARM64' }} | ||
41 | run: ctest --test-dir build -C Release --output-on-failure | ||
42 | - uses: actions/upload-artifact@v3 | ||
43 | with: | ||
44 | name: windows-build-results-${{ matrix.os }}-${{ matrix.arch }} | ||
45 | path: build | ||