Commit e2a16ebb59657399ca7d2367710df817dbbee74e

Authored by Perry Werneck
2 parents 3451381e 449340cb
Exists in master and in 1 other branch develop

Merge branch 'master' into develop

.github/workflows/msys2.yml 0 → 100644
... ... @@ -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 7  
8 8 [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
9 9 ![CodeQL](https://github.com/PerryWerneck/lib3270/workflows/CodeQL/badge.svg)
  10 +[![build result](https://build.opensuse.org/projects/home:PerryWerneck:pw3270/packages/lib3270/badge.svg?type=percent)](https://build.opensuse.org/package/show/home:PerryWerneck:pw3270/lib3270)
10 11 ![Downloads](https://img.shields.io/github/downloads/PerryWerneck/lib3270/total.svg)
11 12  
12 13 Installation repositories
... ...
win/ci-build.sh 0 → 100755
... ... @@ -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 +
... ...