Commit db0ab5f6ce8c0b1df3e1231ada1e43e111c2c922

Authored by Perry Werneck
1 parent 18d4592d
Exists in develop

Debugging publish action.

Showing 2 changed files with 61 additions and 63 deletions   Show diff stats
.github/workflows/publish.yml
1 ----  
2 name: Publish 1 name: Publish
3 on: 2 on:
4 push: 3 push:
5 - branches: [ "publish" ] 4 + branches: [ "develop" ]
6 tags: [ "*" ] 5 tags: [ "*" ]
7 6
8 jobs: 7 jobs:
@@ -13,20 +12,11 @@ jobs: @@ -13,20 +12,11 @@ jobs:
13 shell: msys2 {0} 12 shell: msys2 {0}
14 steps: 13 steps:
15 - uses: actions/checkout@v3 14 - uses: actions/checkout@v3
16 - - uses: oprypin/find-latest-tag@v1  
17 - id: gettag  
18 - with:  
19 - repository: PerryWerneck/pw3270  
20 - sort-tags: true  
21 - releases-only: true  
22 - uses: msys2/setup-msys2@v2 15 - uses: msys2/setup-msys2@v2
23 with: 16 with:
24 msystem: mingw64 17 msystem: mingw64
25 update: true 18 update: true
26 - install: xz dos2unix mingw-w64-x86_64-gcc automake autoconf make git pkgconf  
27 - mingw-w64-x86_64-gettext gettext-devel mingw-w64-x86_64-openssl  
28 - libtool mingw-w64-x86_64-gtk3 mingw-w64-x86_64-librsvg mingw-w64-x86_64-gdk-pixbuf2  
29 - mingw-w64-x86_64-optipng mingw-w64-x86_64-nsis 19 + install: dos2unix 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
30 - uses: robinraju/release-downloader@v1.7 20 - uses: robinraju/release-downloader@v1.7
31 with: 21 with:
32 repository: "PerryWerneck/lib3270" 22 repository: "PerryWerneck/lib3270"
@@ -37,8 +27,17 @@ jobs: @@ -37,8 +27,17 @@ jobs:
37 repository: "PerryWerneck/libv3270" 27 repository: "PerryWerneck/libv3270"
38 latest: true 28 latest: true
39 fileName: "mingw-w64-x86_64-libv3270-5.4-0-x86_64.pkg.tar.zst" 29 fileName: "mingw-w64-x86_64-libv3270-5.4-0-x86_64.pkg.tar.zst"
40 - - name: BuildApp  
41 - run: ./win/ci-build.sh 30 + - name: CI-Build
  31 + run: |
  32 + pacman -U --noconfirm *.pkg.tar.zst
  33 + dos2unix PKGBUILD.mingw
  34 + makepkg BUILDDIR=/tmp/pkg -p PKGBUILD.mingw
  35 + - uses: oprypin/find-latest-tag@v1
  36 + id: gettag
  37 + with:
  38 + repository: PerryWerneck/pw3270
  39 + sort-tags: true
  40 + releases-only: true
42 - uses: ncipollo/release-action@v1 41 - uses: ncipollo/release-action@v1
43 with: 42 with:
44 tag: ${{ steps.gettag.outputs.tag }} 43 tag: ${{ steps.gettag.outputs.tag }}
@@ -78,4 +77,52 @@ jobs: @@ -78,4 +77,52 @@ jobs:
78 omitBody: true 77 omitBody: true
79 omitPrereleaseDuringUpdate: true 78 omitPrereleaseDuringUpdate: true
80 replacesArtifacts: true 79 replacesArtifacts: true
  80 + macos-publish:
  81 + runs-on: macos-latest
  82 + steps:
  83 + - name: Checkout
  84 + uses: actions/checkout@v3
  85 + - name: Install Pre reqs
  86 + run: |
  87 + brew remove azure-cli
  88 + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
  89 + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
  90 + rm -rf /usr/local/bin/2to3*
  91 + rm -rf /usr/local/bin/idle3*
  92 + rm -rf /usr/local/bin/pydoc3*
  93 + rm -rf /usr/local/bin/python3
  94 + rm -rf /usr/local/bin/python3-config
  95 + rm -rf /usr/local/bin/python3*
  96 + rm -rf /usr/local/bin/python3*-config
  97 + find /usr/local/lib/node_modules/npm -delete
  98 + brew update
  99 + brew install xz automake libtool binutils coreutils curl gettext libtool openssl pkgconfig gtk+3
  100 + - uses: robinraju/release-downloader@v1.7
  101 + with:
  102 + repository: "PerryWerneck/lib3270"
  103 + latest: true
  104 + fileName: "macos-lib3270.tar.xz"
  105 + - uses: robinraju/release-downloader@v1.7
  106 + with:
  107 + repository: "PerryWerneck/libv3270"
  108 + latest: true
  109 + fileName: "macos-libv3270.tar.xz"
  110 + - name: build
  111 + run: ./mac/ci-build.sh
  112 + - uses: oprypin/find-latest-tag@v1
  113 + id: gettag
  114 + with:
  115 + repository: PerryWerneck/pw3270
  116 + sort-tags: true
  117 + releases-only: true
  118 + - uses: ncipollo/release-action@v1
  119 + with:
  120 + tag: ${{ steps.gettag.outputs.tag }}
  121 + artifacts: "macos-*.tar.xz"
  122 + allowUpdates: true
  123 + draft: false
  124 + makeLatest: true
  125 + omitBody: true
  126 + omitPrereleaseDuringUpdate: true
  127 + replacesArtifacts: true
81 128
win/ci-build.sh
@@ -1,49 +0,0 @@ @@ -1,49 +0,0 @@
1 -#!/bin/bash  
2 -#  
3 -# SPDX-License-Identifier: LGPL-3.0-or-later  
4 -#  
5 -# Copyright (C) 2008 Banco do Brasil S.A.  
6 -#  
7 -# This program is free software: you can redistribute it and/or modify  
8 -# it under the terms of the GNU Lesser General Public License as published  
9 -# by the Free Software Foundation, either version 3 of the License, or  
10 -# (at your option) any later version.  
11 -#  
12 -# This program is distributed in the hope that it will be useful,  
13 -# but WITHOUT ANY WARRANTY; without even the implied warranty of  
14 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the  
15 -# GNU General Public License for more details.  
16 -#  
17 -# You should have received a copy of the GNU Lesser General Public License  
18 -# along with this program. If not, see <https://www.gnu.org/licenses/>.  
19 -  
20 -#  
21 -# References:  
22 -#  
23 -# * https://www.msys2.org/docs/ci/  
24 -#  
25 -  
26 -echo "Running ${0}"  
27 -  
28 -die ( ) {  
29 - [ "$1" ] && echo "$*"  
30 - exit -1  
31 -}  
32 -  
33 -cd $(dirname $(dirname $(readlink -f ${0})))  
34 -  
35 -#  
36 -# Install pre-reqs  
37 -#  
38 -echo "Installing pre-reqs..."  
39 -pacman -U --noconfirm *.pkg.tar.zst || die "pre-reqs failure"  
40 -  
41 -#  
42 -# Build  
43 -#  
44 -echo "Building package..."  
45 -dos2unix PKGBUILD.mingw || die "dos2unix failure"  
46 -makepkg BUILDDIR=/tmp/pkg -p PKGBUILD.mingw || die "makepkg failure"  
47 -  
48 -echo "Build complete"  
49 -