Commit 3b0dc8729c659576ca7e077ab226daee97edba99
1 parent
e96e7928
Exists in
develop
Working on macos action.
Showing
4 changed files
with
81 additions
and
1 deletions
Show diff stats
@@ -0,0 +1,40 @@ | @@ -0,0 +1,40 @@ | ||
1 | +name: MacOS | ||
2 | +on: | ||
3 | + push: | ||
4 | + branches: | ||
5 | + [ develop ] | ||
6 | +jobs: | ||
7 | + macos-build: | ||
8 | + name: Build for mac | ||
9 | + runs-on: macos-latest | ||
10 | + steps: | ||
11 | + - name: Checkout | ||
12 | + uses: actions/checkout@v3 | ||
13 | + - uses: oprypin/find-latest-tag@v1 | ||
14 | + id: gettag | ||
15 | + with: | ||
16 | + repository: PerryWerneck/lib3270 | ||
17 | + releases-only: true | ||
18 | + - name: Install Pre reqs | ||
19 | + run: | | ||
20 | + brew update | ||
21 | + brew install xz automake binutils coreutils curl gettext libtool openssl pkgconfig gtk+3 | ||
22 | + brew upgrade | ||
23 | + - uses: robinraju/release-downloader@v1.7 | ||
24 | + with: | ||
25 | + repository: "PerryWerneck/lib3270" | ||
26 | + latest: true | ||
27 | + fileName: "macos-lib3270.tar.xz" | ||
28 | + - name: build | ||
29 | + run: ./mac/ci-build.sh | ||
30 | + - uses: ncipollo/release-action@v1 | ||
31 | + with: | ||
32 | + tag: ${{ steps.gettag.outputs.tag }} | ||
33 | + artifacts: "macos-libv3270.tar.xz" | ||
34 | + allowUpdates: true | ||
35 | + draft: false | ||
36 | + makeLatest: true | ||
37 | + omitBody: true | ||
38 | + omitPrereleaseDuringUpdate: true | ||
39 | + replacesArtifacts: true | ||
40 | + |
.github/workflows/msys2.yml
@@ -14,6 +14,11 @@ jobs: | @@ -14,6 +14,11 @@ jobs: | ||
14 | shell: msys2 {0} | 14 | shell: msys2 {0} |
15 | steps: | 15 | steps: |
16 | - uses: actions/checkout@v3 | 16 | - uses: actions/checkout@v3 |
17 | + - uses: oprypin/find-latest-tag@v1 | ||
18 | + id: gettag | ||
19 | + with: | ||
20 | + repository: PerryWerneck/lib3270 | ||
21 | + releases-only: true | ||
17 | - uses: msys2/setup-msys2@v2 | 22 | - uses: msys2/setup-msys2@v2 |
18 | with: | 23 | with: |
19 | msystem: mingw64 | 24 | msystem: mingw64 |
@@ -29,7 +34,7 @@ jobs: | @@ -29,7 +34,7 @@ jobs: | ||
29 | ./win/ci-build.sh | 34 | ./win/ci-build.sh |
30 | - uses: ncipollo/release-action@v1 | 35 | - uses: ncipollo/release-action@v1 |
31 | with: | 36 | with: |
32 | - tag: 5.4 | 37 | + tag: ${{ steps.gettag.outputs.tag }} |
33 | artifacts: "mingw-libv3270.tar.xz" | 38 | artifacts: "mingw-libv3270.tar.xz" |
34 | allowUpdates: true | 39 | allowUpdates: true |
35 | draft: false | 40 | draft: false |
@@ -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 mingw-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 |