Skip to content

Commit 5107617

Browse files
committed
ci: clean up windows workflow
1 parent 30eff11 commit 5107617

File tree

2 files changed

+66
-46
lines changed

2 files changed

+66
-46
lines changed

.github/workflows/windows.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# GitHub Actions workflow to run tests on Windows.
2+
name: "Windows"
3+
4+
on:
5+
push: {}
6+
pull_request: {}
7+
schedule:
8+
- cron: "0 0 * * 0" # At 00:00 weekly on Sunday.
9+
10+
jobs:
11+
test:
12+
name: "${{ matrix.os }}/${{ matrix.arch }}${{ matrix.generator && ' (' + matrix.generator + ')' || '' }}"
13+
runs-on: "${{ matrix.os }}"
14+
permissions:
15+
contents: read
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: ["windows-2022", "windows-2019"]
20+
arch: ["ARM64", "x64", "Win32"]
21+
include:
22+
- os: "windows-2022"
23+
generator: "Visual Studio 17 2022"
24+
- os: "windows-2019"
25+
generator: "Visual Studio 16 2019"
26+
steps:
27+
- name: "Checkout repository"
28+
uses: actions/checkout@v4
29+
30+
- name: "Setup MSYS2"
31+
uses: msys2/setup-msys2@v2
32+
with:
33+
update: true
34+
install: >-
35+
autoconf
36+
automake
37+
diffutils
38+
libtool
39+
gcc
40+
git
41+
patch
42+
perl
43+
44+
- name: "Setup"
45+
shell: msys2 {0}
46+
run: ./autogen.sh
47+
48+
- name: "Configure CMake"
49+
shell: cmd
50+
run: cmake -Bbuild -G "${{ matrix.generator }}" -A ${{ matrix.arch }} -DCMAKE_INSTALL_PREFIX=../local
51+
52+
- name: "Build"
53+
shell: cmd
54+
run: cmake --build build --config Release
55+
56+
- name: "Test"
57+
if: matrix.arch != 'ARM64'
58+
shell: cmd
59+
run: ctest --test-dir build -C Release --output-on-failure
60+
61+
- name: "Upload build artifacts"
62+
if: always()
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: "${{ matrix.os }}-${{ matrix.arch }}-build-results"
66+
path: "build"

.github/workflows/windows_test.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)