Skip to content

Commit

Permalink
Use M1 runner to enable macOS GHA native build
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Apr 5, 2022
1 parent 5bd4cf8 commit db88ff2
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/native-macos.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit db88ff2

Please sign in to comment.