forked from java-native-access/jna
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.06 KB
/
native-libraries-macOS.yaml
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
# Build native library for mac OS
name: mac OS native libraries
on:
workflow_dispatch:
permissions:
contents: read
jobs:
build-native-darwin:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [21]
os: [macos-latest]
name: Build native libraries for mac OS / darwin
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: macOS requirements
if: contains(matrix.os, 'macos')
run: |
brew update
brew install automake --force
brew install libtool --force
brew install texinfo --force
- name: Build native code
run: |
ant -Dos.prefix=darwin-aarch64
ant -Dos.prefix=darwin-x86-64
- name: Upload mac OS binaries
uses: actions/upload-artifact@v4
with:
name: darwin-native
path: |
lib/native/darwin-aarch64.jar
lib/native/darwin-x86-64.jar