Commit 0891dd0ec10da646ada533585807b422c6926bca
Committed by
GitHub
Exists in
develop
Merge pull request #28 from PerryWerneck/develop
Publishing mac & windows builds on PRs
Showing
5 changed files
with
122 additions
and
40 deletions
Show diff stats
.github/workflows/msys2.yml
@@ -1,40 +0,0 @@ | @@ -1,40 +0,0 @@ | ||
1 | -name: MSYS2 | ||
2 | -on: | ||
3 | - pull_request: | ||
4 | - branches: | ||
5 | - - master | ||
6 | - schedule: | ||
7 | - - cron: '30 13 2 2,4,6,8,10,12 *' | ||
8 | - | ||
9 | -jobs: | ||
10 | - msys2-mingw: | ||
11 | - runs-on: windows-latest | ||
12 | - defaults: | ||
13 | - run: | ||
14 | - shell: msys2 {0} | ||
15 | - steps: | ||
16 | - - uses: actions/checkout@v3 | ||
17 | - - uses: msys2/setup-msys2@v2 | ||
18 | - with: | ||
19 | - msystem: mingw64 | ||
20 | - update: true | ||
21 | - 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 | ||
22 | - - uses: robinraju/release-downloader@v1.7 | ||
23 | - with: | ||
24 | - repository: "PerryWerneck/lib3270" | ||
25 | - latest: true | ||
26 | - fileName: "mingw-lib3270.tar.xz" | ||
27 | - - name: CI-Build | ||
28 | - run: | | ||
29 | - ./win/ci-build.sh | ||
30 | - - uses: ncipollo/release-action@v1 | ||
31 | - with: | ||
32 | - tag: 5.4 | ||
33 | - artifacts: "mingw-libv3270.tar.xz" | ||
34 | - allowUpdates: true | ||
35 | - draft: false | ||
36 | - makeLatest: true | ||
37 | - omitBody: true | ||
38 | - omitPrereleaseDuringUpdate: true | ||
39 | - replacesArtifacts: true | ||
40 | - |
@@ -0,0 +1,76 @@ | @@ -0,0 +1,76 @@ | ||
1 | +name: Publish | ||
2 | +on: | ||
3 | + pull_request: | ||
4 | + branches: | ||
5 | + - master | ||
6 | + - develop | ||
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: oprypin/find-latest-tag@v1 | ||
16 | + id: gettag | ||
17 | + with: | ||
18 | + repository: PerryWerneck/libv3270 | ||
19 | + releases-only: true | ||
20 | + - uses: msys2/setup-msys2@v2 | ||
21 | + with: | ||
22 | + msystem: mingw64 | ||
23 | + update: true | ||
24 | + 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 | ||
25 | + - uses: robinraju/release-downloader@v1.7 | ||
26 | + with: | ||
27 | + repository: "PerryWerneck/lib3270" | ||
28 | + latest: true | ||
29 | + fileName: "mingw-lib3270.tar.xz" | ||
30 | + - name: CI-Build | ||
31 | + run: | | ||
32 | + ./win/ci-build.sh | ||
33 | + - uses: ncipollo/release-action@v1 | ||
34 | + with: | ||
35 | + tag: ${{ steps.gettag.outputs.tag }} | ||
36 | + artifacts: "mingw-libv3270.tar.xz" | ||
37 | + allowUpdates: true | ||
38 | + draft: false | ||
39 | + makeLatest: true | ||
40 | + omitBody: true | ||
41 | + omitPrereleaseDuringUpdate: true | ||
42 | + replacesArtifacts: true | ||
43 | + macos: | ||
44 | + name: Build for mac | ||
45 | + runs-on: macos-latest | ||
46 | + steps: | ||
47 | + - name: Checkout | ||
48 | + uses: actions/checkout@v3 | ||
49 | + - uses: oprypin/find-latest-tag@v1 | ||
50 | + id: gettag | ||
51 | + with: | ||
52 | + repository: PerryWerneck/libv3270 | ||
53 | + releases-only: true | ||
54 | + - name: Install Pre reqs | ||
55 | + run: | | ||
56 | + brew update | ||
57 | + brew install xz automake binutils coreutils curl gettext libtool openssl pkgconfig gtk+3 | ||
58 | + brew upgrade | ||
59 | + - uses: robinraju/release-downloader@v1.7 | ||
60 | + with: | ||
61 | + repository: "PerryWerneck/lib3270" | ||
62 | + latest: true | ||
63 | + fileName: "macos-lib3270.tar.xz" | ||
64 | + - name: build | ||
65 | + run: ./mac/ci-build.sh | ||
66 | + - uses: ncipollo/release-action@v1 | ||
67 | + with: | ||
68 | + tag: ${{ steps.gettag.outputs.tag }} | ||
69 | + artifacts: "macos-libv3270.tar.xz" | ||
70 | + allowUpdates: true | ||
71 | + draft: false | ||
72 | + makeLatest: true | ||
73 | + omitBody: true | ||
74 | + omitPrereleaseDuringUpdate: true | ||
75 | + replacesArtifacts: true | ||
76 | + |
CHANGELOG
1 | ------------------------------------------------------------------- | 1 | ------------------------------------------------------------------- |
2 | +Tue Mar 14 03:15:06 UTC 2023 - perry.werneck@gmail.com | ||
3 | + | ||
4 | +- Update to version 5.4: | ||
5 | + * Update README.md | ||
6 | + * Adding obs badge. | ||
7 | + * Scheduling msys2 rebuilds. | ||
8 | + * Fixing segfault on exit with trace enabled. | ||
9 | + * msys workflow runs only in master branch pull requests. | ||
10 | + * Debugging msys workflow. | ||
11 | + | ||
12 | +------------------------------------------------------------------- | ||
2 | Thu Apr 07 22:44:11 UTC 2022 - perry.werneck@gmail.com | 13 | Thu Apr 07 22:44:11 UTC 2022 - perry.werneck@gmail.com |
3 | 14 | ||
4 | - Update to version 5.4: | 15 | - Update to version 5.4: |
@@ -0,0 +1,31 @@ | @@ -0,0 +1,31 @@ | ||
1 | +#!/bin/bash | ||
2 | + | ||
3 | +export PKG_CONFIG_PATH="$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" | ||
4 | + | ||
5 | +PROJECT_NAME=$(grep AC_INIT configure.ac | cut -d[ -f2 | cut -d] -f1) | ||
6 | +VERSION=$(grep AC_INIT configure.ac | cut -d[ -f3 | cut -d] -f1) | ||
7 | + | ||
8 | +echo "Unpacking lib3270" | ||
9 | +tar -C $(brew --cellar) -Jxvf macos-lib3270.tar.xz | ||
10 | +if [ "$?" != "0" ]; then | ||
11 | + exit -1 | ||
12 | +fi | ||
13 | + | ||
14 | +brew link lib3270 | ||
15 | +if [ "$?" != "0" ]; then | ||
16 | + exit -1 | ||
17 | +fi | ||
18 | + | ||
19 | +./autogen.sh --prefix="/${PROJECT_NAME}/${VERSION}" | ||
20 | +if [ "$?" != "0" ]; then | ||
21 | + exit -1 | ||
22 | +fi | ||
23 | + | ||
24 | +make all | ||
25 | +if [ "$?" != "0" ]; then | ||
26 | + exit -1 | ||
27 | +fi | ||
28 | + | ||
29 | +make DESTDIR=.bin/package install | ||
30 | +tar --create --xz --file=macos-${PROJECT_NAME}.tar.xz --directory=.bin/package --verbose . | ||
31 | + |
@@ -0,0 +1,4 @@ | @@ -0,0 +1,4 @@ | ||
1 | +<servicedata> | ||
2 | +<service name="tar_scm"> | ||
3 | + <param name="url">https://github.com/PerryWerneck/libv3270.git</param> | ||
4 | + <param name="changesrevision">1da277294f1cec4dd0b9f3a2a4e04f9bdee1c85c</param></service></servicedata> | ||
0 | \ No newline at end of file | 5 | \ No newline at end of file |