Commit e2a16ebb59657399ca7d2367710df817dbbee74e
Exists in
master
and in
1 other branch
Merge branch 'master' into develop
Showing
3 changed files
with
56 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,24 @@ | @@ -0,0 +1,24 @@ | ||
1 | +name: MSYS2 | ||
2 | +on: | ||
3 | + pull_request: | ||
4 | + branches: | ||
5 | + - master | ||
6 | + | ||
7 | +jobs: | ||
8 | + msys2-mingw: | ||
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: mingw64 | ||
18 | + update: true | ||
19 | + install: xz mingw-w64-x86_64-gcc automake autoconf make git pkgconf mingw-w64-x86_64-gettext gettext-devel mingw-w64-x86_64-openssl libtool | ||
20 | + - name: CI-Build | ||
21 | + run: | | ||
22 | + gcc -v | ||
23 | + ./win/ci-build.sh | ||
24 | + |
README.md
@@ -7,6 +7,7 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ | @@ -7,6 +7,7 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
7 | 7 | ||
8 | [](https://www.gnu.org/licenses/gpl-3.0) | 8 | [](https://www.gnu.org/licenses/gpl-3.0) |
9 |  | 9 |  |
10 | +[](https://build.opensuse.org/package/show/home:PerryWerneck:pw3270/lib3270) | ||
10 |  | 11 |  |
11 | 12 | ||
12 | Installation repositories | 13 | Installation repositories |
@@ -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 | + |