-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.25 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
name: build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Build with gradle
run: |
chmod +x gradlew
echo "Building..."
./gradlew build
env:
BUILD_ID: ${{ github.run_number }}
BUILD_RELEASE: false
- name: Gather artifacts
run: |
mkdir gathered-artifacts
cp -r versions/*/build/libs/* gathered-artifacts/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: gathered-artifacts
summary:
runs-on: ubuntu-22.04
needs:
- build
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
name: Artifacts
path: gathered-artifacts
- name: Make build summary
run: python3 .github/workflows/scripts/summary.py # ubuntu-22.04 uses Python 3.10.6
env:
TARGET_SUBPROJECT: '' # leaving this empty means all subprojects