Skip to content

Commit 6ea96a6

Browse files
Copilotlidaobing
andauthored
Add Windows CI workflow (#699)
* Initial plan * Add Windows CI workflow using MSYS2 Co-authored-by: lidaobing <27529+lidaobing@users.noreply.github.com> * Update checkout action to v2 for consistency Co-authored-by: lidaobing <27529+lidaobing@users.noreply.github.com> * Add explicit permissions to Windows CI workflow Co-authored-by: lidaobing <27529+lidaobing@users.noreply.github.com> * 1 * 1 * 1 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lidaobing <27529+lidaobing@users.noreply.github.com> Co-authored-by: LI Daobing <lidaobing@gmail.com>
1 parent 0bc0172 commit 6ea96a6

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/windows.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Windows CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-on-windows:
11+
runs-on: windows-latest
12+
permissions:
13+
contents: read
14+
defaults:
15+
run:
16+
shell: msys2 {0}
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Setup MSYS2
21+
uses: msys2/setup-msys2@v2
22+
with:
23+
msystem: MINGW64
24+
update: true
25+
install: >-
26+
mingw-w64-x86_64-gcc
27+
mingw-w64-x86_64-meson
28+
mingw-w64-x86_64-ninja
29+
mingw-w64-x86_64-pkg-config
30+
mingw-w64-x86_64-gtk3
31+
mingw-w64-x86_64-glib2
32+
mingw-w64-x86_64-jsoncpp
33+
mingw-w64-x86_64-libsigc++
34+
mingw-w64-x86_64-gettext-tools
35+
mingw-w64-x86_64-appstream
36+
37+
- name: Configure
38+
run: meson setup build
39+
40+
- name: Build
41+
run: meson compile -C build
42+
43+
- name: Install
44+
run: meson install -C build
45+
46+
- name: Test
47+
run: meson test -C build --verbose --no-stdsplit

0 commit comments

Comments
 (0)