-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (71 loc) · 2.3 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: build
on: [push]
jobs:
build-android:
strategy:
matrix:
# Use these Java versions
java: [
11 # Minimum supported
]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
name: Build APK
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Make gradle wrapper executable
run: chmod +x ./gradlew
- name: Build
run: ./gradlew :android:packageRelease
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_BUILD_NUMBER: ${{ github.run_number }}
- name: Capture the build artifacts
uses: actions/upload-artifact@v2
with:
name: Bubble Blaster Android Build ${{ github.run_number }} (APK)
path: android/build/outputs/apk/release
build-desktop:
strategy:
matrix:
# Use these Java versions
java: [
17 # Minimum supported
]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
name: Build PACKAGE.ZIP
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Make gradle wrapper executable
run: chmod +x ./gradlew
- name: Build
run: ./gradlew :pack
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_BUILD_NUMBER: ${{ github.run_number }}
- name: Capture the build artifacts
uses: actions/upload-artifact@v2
with:
name: Bubble Blaster Desktop Build ${{ github.run_number }} (PACKAGE.ZIP)
path: desktop-merge/build/dist