diff --git a/.github/workflows/macos-native-lib.yml b/.github/workflows/macos-native-lib.yml new file mode 100644 index 00000000..ecfd5ff8 --- /dev/null +++ b/.github/workflows/macos-native-lib.yml @@ -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'