-
Notifications
You must be signed in to change notification settings - Fork 77
50 lines (44 loc) · 1.36 KB
/
native-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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:
- '**'
jobs:
native:
runs-on: macos-latest
name: macOS binary
steps:
- uses: actions/checkout@v2
- name: set up java ${{ matrix.java-version }}
uses: actions/setup-java@v1.4.3
with:
java-version: 8
- name: cache dependencies
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build
env:
LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib:$LIBRARY_PATH
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"
- name: Archive built library
uses: actions/upload-artifact@v2
with:
name: shared-object
path: build/jni/*.so
- name: Archive built jar
uses: actions/upload-artifact@v2
with:
name: jar
path: archive/*.jar