MSYS2-packages/msys2-runtime/0023-CI-add-a-GHA-for-doing-a-basic-build-test.patch
Johannes Schindelin ff07714b85 msys2-runtime: update to v3.3.4
This corresponds to https://github.com/msys2/msys2-runtime/pull/85.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2022-02-01 09:34:31 +01:00

56 lines
1.4 KiB
Diff

From b4f09af08e12d76b92e97d2e8a53ad313bd8998c Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Sun, 9 Aug 2020 14:02:51 +0200
Subject: [PATCH 23/N] CI: add a GHA for doing a basic build test
---
.github/workflows/build.yaml | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 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..4e1d498
--- /dev/null
+++ b/.github/workflows/build.yaml
@@ -0,0 +1,36 @@
+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 autotools cocom diffutils gcc gettext-devel libiconv-devel make mingw-w64-cross-crt mingw-w64-cross-gcc mingw-w64-cross-zlib perl zlib-devel xmlto docbook-xsl
+
+ - name: Build
+ shell: msys2 {0}
+ run: |
+ (cd winsup && ./autogen.sh)
+ ./configure
+ make -j8
+
+ - name: Install
+ shell: msys2 {0}
+ run: |
+ make DESTDIR="$(pwd)"/_dest install
+
+ - name: Upload
+ uses: actions/upload-artifact@v2
+ with:
+ name: install
+ path: _dest/
--
2.34.1