-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fabio Di Fabio <[email protected]>
- Loading branch information
Showing
3 changed files
with
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
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 built 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' | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: macosNativeLib | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 21 | ||
distribution: temurin | ||
cache: 'gradle' | ||
|
||
- name: Create macOS native lib dir | ||
run: mkdir -p native/compress/build/native/darwin-aarch64 | ||
|
||
- name: Get the built macOS native lib | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: libcompress_jni.dylib | ||
path: native/compress/build/native/darwin-aarch64 | ||
|
||
- name: List native resources | ||
run: ls -lR native/compress/build/native | ||
|
||
- name: Build without tests | ||
run: ./gradlew build -PreleaseNativeLibs -PreleaseVersion=0.0.0-TEST -x test -x spotlessCheck | ||
|
||
- name: List native resources | ||
run: ls -lR native/compress/build/native | ||
|
||
- name: Upload jar | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: linea-sequencer-0.0.0-TEST.jar | ||
path: ./sequencer/build/libs/linea-sequencer-0.0.0-TEST.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
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