Skip to content

Commit

Permalink
Build macOS native lib
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 committed Sep 19, 2024
1 parent 6d070eb commit 2818bdd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/macos-native-lib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: macOS native lib

on: [push]

jobs:
macosNativeLib:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: stable

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 21
distribution: temurin

- name: Build native lib
run: ./gradlew :native:compress:buildJNI

- name: List build files
run: ls -lR native/compress/build/

- name: Upload macOS native lib asset
uses: actions/upload-artifact@v4
with:
name: libcompress_jni.dylib
path: 'native/compress/build/native/darwin-aarch64/libcompress_jni.dylib'

0 comments on commit 2818bdd

Please sign in to comment.