From fd4c8f1f9fd7add827bceb512ac68dee97e81577 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Thu, 3 Jun 2021 16:49:35 +0200
Subject: [PATCH 19/N] Add a CI job

---
 .github/workflows/build.yaml | 55 ++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 .github/workflows/build.yaml

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
new file mode 100644
index 0000000..5b198ca
--- /dev/null
+++ b/.github/workflows/build.yaml
@@ -0,0 +1,55 @@
+name: build
+
+on: [push, pull_request]
+
+jobs:
+  build:
+    runs-on: windows-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v2
+
+      - name: setup-msys2
+        uses: msys2/setup-msys2@v2
+        with:
+          msystem: MSYS
+          update: true
+          install: >-
+            msys2-devel
+            base-devel
+            asciidoc
+            doxygen
+            git
+            meson
+            ninja
+            gettext-devel
+            heimdal-devel
+            libarchive-devel
+            libcurl-devel
+            libgpgme-devel
+            libsqlite-devel
+            libunistring-devel
+
+      - name: Build
+        shell: msys2 {0}
+        run: |
+          meson _build \
+            --auto-features=enabled \
+            --default-library=static \
+            -Dbuildstatic=true \
+            -Ddoxygen=enabled \
+            -Dfile-seccomp=disabled
+
+          meson compile -C _build
+
+      - name: Install
+        shell: msys2 {0}
+        run: |
+          DESTDIR="$(pwd)"/_dest meson install -C _build
+
+      - name: Upload
+        uses: actions/upload-artifact@v2
+        with:
+          name: install
+          path: _dest/
-- 
2.33.0

