-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (47 loc) · 1.49 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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: build
on: [ push ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install Packages
run: sudo apt-get install -y advancecomp
# cache local gradle files, global ones will be taken care of by the setup-gradle action
- uses: actions/cache@v4
with:
path: |
**/.gradle/
**/build/
key: ${{ runner.os }}-gradlelocal-${{ github.ref }}
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: :build
run: ./gradlew build --stacktrace --no-daemon -PwithAuditAndExit=true
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: zume
path: |
**/build/libs/zume*.jar
build/libs/*mappings.txt
- name: :smokeTest
id: smokeTest
uses: coactions/setup-xvfb@v1
with:
run: ./gradlew :smokeTest --no-daemon -PwithAuditAndExit=true
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: smokeTest
path: |
build/smoke_test/**/logs/**
build/smoke_test/**/setup.log