-
Notifications
You must be signed in to change notification settings - Fork 4
214 lines (205 loc) · 8.56 KB
/
push.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
---
# GitHub Actions workflow for commits pushed to the jolt-jni repo - all branches
name: CI at GitHub
on: [push]
jobs:
Java11-Linux:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- uses: actions/checkout@v4
- uses: gradle/actions/setup-gradle@v4
- name: gradlew -Pbt=Debug -Pflavor=Sp -Ptarget=Linux64 build install
run: |
./gradlew -Pbt=Debug -Pflavor=Sp -Ptarget=Linux64 build install \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}'
Java21-Linux:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: actions/checkout@v4
- run: g++ --version
- uses: gradle/actions/setup-gradle@v4
- name: gradlew -Ptarget=Linux64 build install
run: |
./gradlew -Ptarget=Linux64 build install \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}'
- name: gradlew -Partifact=jolt-jni-Linux64 -Ptarget=Linux64 clean release
if: startsWith(github.ref, 'refs/tags/')
run: |
./gradlew -Partifact=jolt-jni-Linux64 -Ptarget=Linux64 clean release \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
-PossrhPassword='${{ secrets.OSSRH_PASSWORD }}' \
-PossrhUsername='${{ secrets.OSSRH_USERNAME }}'
Java21-MacOSX64:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: macOS-13
timeout-minutes: 30
steps:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: actions/checkout@v4
- uses: gradle/actions/setup-gradle@v4
- name: gradlew -Ptarget=MacOSX64 run build install
run: |
./gradlew -Ptarget=MacOSX64 run build install \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}'
- name: gradlew -Partifact=jolt-jni-MacOSX64 -Ptarget=MacOSX64 clean release
if: startsWith(github.ref, 'refs/tags/')
run: |
./gradlew -Partifact=jolt-jni-MacOSX64 -Ptarget=MacOSX64 clean release \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
-PossrhPassword='${{ secrets.OSSRH_PASSWORD }}' \
-PossrhUsername='${{ secrets.OSSRH_USERNAME }}'
Java21-MacOSX_ARM64:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: macOS-14
timeout-minutes: 15
steps:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: actions/checkout@v4
- uses: gradle/actions/setup-gradle@v4
- name: gradlew -Ptarget=MacOSX_ARM64 build install
run: |
./gradlew -Ptarget=MacOSX_ARM64 build install \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}'
- name: gradlew -Partifact=jolt-jni-MacOSX_ARM64 -Ptarget=MacOSX_ARM64 clean release
if: startsWith(github.ref, 'refs/tags/')
run: |
./gradlew -Partifact=jolt-jni-MacOSX_ARM64 -Ptarget=MacOSX_ARM64 clean release \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
-PossrhPassword='${{ secrets.OSSRH_PASSWORD }}' \
-PossrhUsername='${{ secrets.OSSRH_USERNAME }}'
Java21-Windows:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: windows-2022
timeout-minutes: 25
steps:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: actions/checkout@v4
- uses: gradle/actions/setup-gradle@v4
- name: gradlew -Ptarget=Windows64 build install
run: |
./gradlew -Ptarget=Windows64 build install \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}'
shell: bash
- name: gradlew -Partifact=jolt-jni-Windows64 -Ptarget=Windows64 clean release
if: startsWith(github.ref, 'refs/tags/')
run: |
./gradlew -Partifact=jolt-jni-Windows64 -Ptarget=Windows64 clean release \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
-PossrhPassword='${{ secrets.OSSRH_PASSWORD }}' \
-PossrhUsername='${{ secrets.OSSRH_USERNAME }}'
shell: bash
Java21-x-Linux_ARM32hf:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: ubuntu-22.04
timeout-minutes: 25
steps:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: actions/checkout@v4
- run: sudo apt install g++-9-arm-linux-gnueabihf
- run: arm-linux-gnueabihf-g++-9 --version
- uses: gradle/actions/setup-gradle@v4
- name: gradlew -Ptarget=Linux_ARM32hf assemble
run: |
./gradlew -Ptarget=Linux_ARM32hf assemble \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}'
- name: gradlew -Partifact=jolt-jni-Linux_ARM32hf -Ptarget=Linux_ARM32hf clean release
if: startsWith(github.ref, 'refs/tags/')
run: |
./gradlew -Partifact=jolt-jni-Linux_ARM32hf -Ptarget=Linux_ARM32hf clean release \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
-PossrhPassword='${{ secrets.OSSRH_PASSWORD }}' \
-PossrhUsername='${{ secrets.OSSRH_USERNAME }}'
Java21-x-Linux_ARM64:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: actions/checkout@v4
- run: sudo apt install g++-10-aarch64-linux-gnu
- run: aarch64-linux-gnu-g++-10 --version
- uses: gradle/actions/setup-gradle@v4
- name: gradlew -Ptarget=Linux_ARM64 assemble
run: |
./gradlew -Ptarget=Linux_ARM64 assemble \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}'
- name: gradlew -Partifact=jolt-jni-Linux_ARM64 -Ptarget=Linux_ARM64 clean release
if: startsWith(github.ref, 'refs/tags/')
run: |
./gradlew -Partifact=jolt-jni-Linux_ARM64 -Ptarget=Linux_ARM64 clean release \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
-PossrhPassword='${{ secrets.OSSRH_PASSWORD }}' \
-PossrhUsername='${{ secrets.OSSRH_USERNAME }}'
Java23-Linux:
if: contains(toJson(github.event.commits), '[ci skip] ') == false
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 23
- uses: actions/checkout@v4
- uses: mattsb42/not-grep@master
with:
config-file: .github/not-grep.toml
- uses: gradle/actions/setup-gradle@v4
- name: gradlew -Pbt=Release -Pflavor=Sp -Ptarget=Linux64 build install
run: |
./gradlew -Pbt=Release -Pflavor=Sp -Ptarget=Linux64 build install \
--console=plain \
-PsigningKeyEncoded='${{ secrets.SIGNING_KEY_ENCODED }}' \
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}'