-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (37 loc) · 1.08 KB
/
build_test_linux.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
name: Build and Test on Linux
on:
push:
branches:
- main
pull_request_review:
types: [ submitted ]
jobs:
build_test_linux:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4
- name: Mark Gradle as Executable
run: chmod +x gradlew
- name: Build with Gradle Wrapper
run: ./gradlew build
- name: Upload CLI Jar
uses: actions/upload-artifact@v4
with:
name: jar-builds
path: build/libs/*.jar
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux-builds
path: build/libs/linux/