diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..78007e5 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,39 @@ +name: Publish +on: + push: + branches: [ "macos" ] + pull_request: + branches: [ "master" ] + +jobs: + macos-build: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - uses: oprypin/find-latest-tag@v1 + id: gettag + with: + repository: PerryWerneck/pw3270 + sort-tags: true + releases-only: true + - name: Install Pre reqs + run: | + brew update + brew install xz automake libtool binutils coreutils curl gettext libtool openssl pkgconfig gtk+3 + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete + find /usr/local/lib/node_modules/npm -delete + - uses: robinraju/release-downloader@v1.7 + with: + repository: "PerryWerneck/lib3270" + latest: true + fileName: "macos-lib3270.tar.xz" + - uses: robinraju/release-downloader@v1.7 + with: + repository: "PerryWerneck/libv3270" + latest: true + fileName: "macos-libv3270.tar.xz" + - name: build + run: ./mac/ci-build.sh + diff --git a/.github/workflows/macpkg.yml b/.github/workflows/macpkg.yml deleted file mode 100644 index a6b6f29..0000000 --- a/.github/workflows/macpkg.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Publish -on: - push: - branches: - - macos - pull_request: - branches: - - master - - develop -jobs: - macos: - name: Publish macos - runs-on: macos-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - uses: oprypin/find-latest-tag@v1 - id: gettag - with: - repository: PerryWerneck/pw3270 - sort-tags: true - releases-only: true - - name: Install Pre reqs - run: | - brew update - brew install xz automake libtool binutils coreutils curl gettext libtool openssl pkgconfig gtk+3 - find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete - find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete - find /usr/local/lib/node_modules/npm -delete - brew upgrade - - uses: robinraju/release-downloader@v1.7 - with: - repository: "PerryWerneck/lib3270" - latest: true - fileName: "macos-lib3270.tar.xz" - - uses: robinraju/release-downloader@v1.7 - with: - repository: "PerryWerneck/libv3270" - latest: true - fileName: "macos-libv3270.tar.xz" - - name: build - run: ./mac/ci-build.sh - - uses: ncipollo/release-action@v1 - with: - tag: ${{ steps.gettag.outputs.tag }} - artifacts: "macos-pw3270.tar.xz" - allowUpdates: true - draft: true - makeLatest: true - omitBody: true - omitPrereleaseDuringUpdate: true - replacesArtifacts: true - -- libgit2 0.21.2