See https://github.com/msys2/msys2-runtime/pull/63 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
56 lines
1.4 KiB
Diff
56 lines
1.4 KiB
Diff
From e5fbfc41995045e82916fb4baea6ca640dfdb780 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..8b0817c
|
|
--- /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 cocom diffutils gcc gettext-devel libiconv-devel make mingw-w64-cross-crt mingw-w64-cross-gcc mingw-w64-cross-zlib perl zlib-devel
|
|
+
|
|
+ - 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.33.0
|
|
|