diff --git a/.github/workflows/native-macos.yml b/.github/workflows/native-macos.yml index 3bc7f1e2..be46c1de 100644 --- a/.github/workflows/native-macos.yml +++ b/.github/workflows/native-macos.yml @@ -1,20 +1,15 @@ name: Build macOS Binaries on: -# push: -# branches: [ master ] -# pull_request: -# branches: [ master ] - # GHA does not support building Apple am64 very well, so we disable this workflow for now. - # See https://github.com/actions/runner/issues/805 push: - branches-ignore: - - '**' + branches: [ master ] + pull_request: + branches: [ master ] jobs: native: - runs-on: macos-latest + runs-on: [self-hosted, macos, aarch64] name: macOS binary @@ -24,6 +19,7 @@ jobs: uses: actions/setup-java@v1.4.3 with: java-version: 8 + architecture: arm - name: cache dependencies uses: actions/cache@v1 with: @@ -36,12 +32,12 @@ jobs: run: "rm archive/* && ant jar && ant archive-platform-jar" - name: Dump config.log if: ${{ always() }} - run: "cat /Users/runner/work/jffi/jffi/build/jni/libffi-darwin-x86_64/config.log" + run: "cat build/jni/libffi-darwin-x86_64/config.log" - name: Archive built library uses: actions/upload-artifact@v2 with: name: shared-object - path: build/jni/*.so + path: build/jni/*.jnilib - name: Archive built jar uses: actions/upload-artifact@v2 with: