Commit 222b31ed45770bfd325ffe896f8eca8821ed8487
1 parent
2639be97
Exists in
master
and in
1 other branch
Adding msys2 workflow.
Showing
2 changed files
with
54 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,23 @@ | @@ -0,0 +1,23 @@ | ||
1 | +name: MSYS2 | ||
2 | +on: | ||
3 | + pull_request: | ||
4 | + branches: | ||
5 | + - master | ||
6 | + | ||
7 | +jobs: | ||
8 | + msys2-ucrt64: | ||
9 | + runs-on: windows-latest | ||
10 | + defaults: | ||
11 | + run: | ||
12 | + shell: msys2 {0} | ||
13 | + steps: | ||
14 | + - uses: actions/checkout@v3 | ||
15 | + - uses: msys2/setup-msys2@v2 | ||
16 | + with: | ||
17 | + msystem: UCRT64 | ||
18 | + update: true | ||
19 | + install: git mingw-w64-ucrt-x86_64-gcc mingw-w64-x86_64-gcc automake autoconf make git pkgconf mingw-w64-x86_64-gettext mingw-w64-x86_64-openssl libtool | ||
20 | + - name: CI-Build | ||
21 | + run: | | ||
22 | + ./win/ci-build.sh | ||
23 | + |
@@ -0,0 +1,31 @@ | @@ -0,0 +1,31 @@ | ||
1 | +#!/bin/bash | ||
2 | +# | ||
3 | +# References: | ||
4 | +# | ||
5 | +# * https://www.msys2.org/docs/ci/ | ||
6 | +# | ||
7 | +# | ||
8 | +echo "Running ${0}" | ||
9 | + | ||
10 | +LOGFILE=build.log | ||
11 | +rm -f ${LOGFILE} | ||
12 | + | ||
13 | +die ( ) { | ||
14 | + [ -s $LOGFILE ] && tail $LOGFILE | ||
15 | + [ "$1" ] && echo "$*" | ||
16 | + exit -1 | ||
17 | +} | ||
18 | + | ||
19 | +cd $(dirname $(dirname $(readlink -f ${0}))) | ||
20 | + | ||
21 | +# | ||
22 | +# Build LIB3270 | ||
23 | +# | ||
24 | +echo "Building lib3270" | ||
25 | +./autogen.sh > $LOGFILE 2>&1 || die "Autogen failure" | ||
26 | +./configure > $LOGFILE 2>&1 || die "Configure failure" | ||
27 | +make clean > $LOGFILE 2>&1 || die "Make clean failure" | ||
28 | +make all > $LOGFILE 2>&1 || die "Make failure" | ||
29 | + | ||
30 | +echo "Build complete" | ||
31 | + |