forked from openrocket/openrocket
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.23 KB
/
build.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
name: Build
on:
push:
branches:
- unstable
pull_request:
branches:
- unstable
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
# Not sure why this is needed, per a support issue (https://github.com/gradle/gradle-build-action/issues/517) it should not
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Execute Gradle build
run: ./gradlew clean check build dist
# If wanting to serialize all the engines during build
# run: ./gradlew clean serializeEnginesDist build dist
- name: Upload build reports
uses: actions/upload-artifact@v3
with:
name: build-reports
path: build/reports/
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: openrocket_build_${{ github.run_number }}
path: ${{github.workspace}}/build/libs/OpenRocket*.jar