aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/windows_test.yml45
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 @@
1name: windows_ci
2
3on: [push, pull_request]
4
5jobs:
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