diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml index 712a1d7..5c8d8f1 100644 --- a/.github/workflows/msys2.yml +++ b/.github/workflows/msys2.yml @@ -3,23 +3,41 @@ on: pull_request: branches: - master - schedule: - - cron: '30 13 3 2,4,6,8,10,12 *' + push: + branches: + - develop jobs: msys2-mingw: + name: Publish Windows 64 runs-on: windows-latest defaults: run: shell: msys2 {0} steps: - uses: actions/checkout@v3 + - uses: oprypin/find-latest-tag@v1 + id: gettag + with: + repository: PerryWerneck/libv3270 + releases-only: true - uses: msys2/setup-msys2@v2 with: msystem: mingw64 update: true 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 mingw-w64-x86_64-gtk3 mingw-w64-x86_64-imagemagick mingw-w64-x86_64-optipng mingw-w64-x86_64-inkscape + - uses: robinraju/release-downloader@v1.7 + with: + repository: "PerryWerneck/lib3270" + latest: true + fileName: "mingw-lib3270.x86_64.tar.xz" + - uses: robinraju/release-downloader@v1.7 + with: + repository: "PerryWerneck/libv3270" + latest: true + fileName: "mingw-libv3270.x86_64.tar.xz" - name: CI-Build run: | ./win/ci-build.sh + diff --git a/win/ci-build.sh b/win/ci-build.sh index 18b9b08..0579a59 100644 --- a/win/ci-build.sh +++ b/win/ci-build.sh @@ -23,32 +23,16 @@ cd ${myDIR} rm -fr ${myDIR}/.build # -# Build LIB3270 +# Unpack lib3270 # -echo "Building lib3270" -mkdir -p ${myDIR}/.build/lib3270 -git clone https://github.com/PerryWerneck/lib3270.git ${myDIR}/.build/lib3270 > $LOGFILE 2>&1 || die "clone lib3270 failure" -pushd ${myDIR}/.build/lib3270 -./autogen.sh > $LOGFILE 2>&1 || die "Autogen failure" -./configure > $LOGFILE 2>&1 || die "Configure failure" -make clean > $LOGFILE 2>&1 || die "Make clean failure" -make all > $LOGFILE 2>&1 || die "Make failure" -make install > $LOGFILE 2>&1 || die "Install failure" -popd +echo "Unpacking lib3270" +tar -C / -Jxf mingw-lib3270.${MSYSTEM_CARCH}.tar.xz > $LOGFILE 2>&1 || die "lib3270 unpack failure" # -# Build LIBV3270 +# Unpack libv3270 # -echo "Building libv3270" -mkdir -p ${myDIR}/.build/libv3270 -git clone https://github.com/PerryWerneck/libv3270.git ${myDIR}/.build/libv3270 > $LOGFILE 2>&1 || die "clone libv3270 failure" -pushd ${myDIR}/.build/libv3270 -./autogen.sh > $LOGFILE 2>&1 || die "Autogen failure" -./configure > $LOGFILE 2>&1 || die "Configure failure" -make clean > $LOGFILE 2>&1 || die "Make clean failure" -make all > $LOGFILE 2>&1 || die "Make failure" -make install > $LOGFILE 2>&1 || die "Install failure" -popd +echo "Unpacking lib3270" +tar -C / -Jxf mingw-libv3270.${MSYSTEM_CARCH}.tar.xz > $LOGFILE 2>&1 || die "libv3270 unpack failure" # # Build PW3270 -- libgit2 0.21.2