]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
actions: Add MSYS2 builder
authorPatrick Griffis <redacted>
Sat, 29 May 2021 01:45:11 +0000 (20:45 -0500)
committerPatrick Griffis <redacted>
Fri, 16 Jul 2021 01:59:27 +0000 (20:59 -0500)
.github/workflows/msys-build.yml [new file with mode: 0644]

diff --git a/.github/workflows/msys-build.yml b/.github/workflows/msys-build.yml
new file mode 100644 (file)
index 0000000..9311b79
--- /dev/null
@@ -0,0 +1,40 @@
+name: MSYS2 Build
+on: [push, pull_request]
+
+jobs:
+  build:
+    runs-on: windows-latest
+    defaults:
+      run:
+        shell: msys2 {0}
+
+    steps:
+      - uses: actions/checkout@v2
+
+      - uses: msys2/setup-msys2@v2
+        with:
+          install: >-
+            mingw-w64-x86_64-gcc
+            mingw-w64-x86_64-pkg-config
+            mingw-w64-x86_64-python3-cffi
+            mingw-w64-x86_64-meson
+            mingw-w64-x86_64-gtk2
+            mingw-w64-x86_64-luajit
+            mingw-w64-x86_64-desktop-file-utils
+
+      - name: Configure
+        run: >-
+          meson build
+          -Dtext-frontend=true
+          -Ddbus=disabled
+          -Dwith-upd=false
+          -Dwith-perl=false
+
+      - name: Build
+        run: ninja -C build
+
+      - name: Test
+        run: ninja -C build test
+
+      - name: Install
+        run: ninja -C build install