-
Notifications
You must be signed in to change notification settings - Fork 19
67 lines (53 loc) · 1.74 KB
/
macos-native-lib.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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/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 downloaded files
run: ls -lR native/compress/build
- name: Build without tests
run: ./gradlew build -PreleaseNativeLibs -PreleaseVersion=0.0.0-TEST -x test -x spotlessCheck
- name: List built files
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