forked from cataclysmbnteam/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.17 KB
/
android.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
name: Cataclysm Android build
on:
pull_request:
branches:
- upload
paths-ignore:
- 'build-data/osx/**'
- 'doc/**'
- 'doxygen_doc/**'
- 'gfx/**'
- 'lang/**'
- 'lgtm/**'
- 'msvc-object_creator/**'
- 'object_creator/**'
- 'tools/**'
- '!tools/format/**'
- 'utilities/**'
# We only care about the latest revision of a PR, so cancel previous instances.
concurrency:
group: android-build-${{ github.event.pull_request.number || github.ref_name }}
cancel-in-progress: true
jobs:
build_catatclysm:
name: Build
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up JDK 8 (android)
uses: actions/setup-java@v2
with:
java-version: "8"
distribution: "adopt"
- name: Setup build and dependencies
run: |
sudo apt-get update
sudo apt-get install gettext
- name: Build
working-directory: ./android
run: |
chmod +x gradlew
./gradlew -Pj=$((`nproc`+0)) -Pabi_arm_32=false assembleExperimentalRelease