-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (47 loc) · 1.71 KB
/
build.yml
File metadata and controls
58 lines (47 loc) · 1.71 KB
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
name: Feature Branch Libraries build
on: [ push, pull_request ]
jobs:
build-job:
runs-on: ubuntu-latest # enables hardware acceleration in the virtual machine
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Set up JDK 22
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: 22
- name: Print git commit variables
run: |
echo "TAG: $CURRENT_TAG"
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
# Use --no-daemon only if you must. With setup-gradle, the build runs efficiently without a long-lived daemon anyway.
- name: Build and Test (PR)
if: github.event_name == 'pull_request'
run: |
./gradlew --stacktrace \
-Dorg.gradle.caching=true \
-Dorg.gradle.configuration-cache=true \
-Dorg.gradle.parallel=true \
clean assemble allTests
- name: Build and Test (push)
if: github.event_name != 'pull_request'
run: |
./gradlew --stacktrace \
-Dorg.gradle.caching=true \
-Dorg.gradle.configuration-cache=true \
-Dorg.gradle.parallel=true \
assemble allTests
- name: Upload all test reports
if: always()
uses: actions/upload-artifact@v6
with:
name: test-reports
path: |
**/build/reports/tests/**
**/build/test-results/**
retention-days: 14