-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1594 from matthiasblaesing/build_mac
Improve Testing / native libarary building for darwin/mac OS
- Loading branch information
Showing
3 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# 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 | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters