-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix android build, add android to CI (#2244)
* Add android builds to CI * Fix compilation of mutation_ui.cpp on android * Remove unused bits from workflow file
- Loading branch information
Showing
2 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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@v2 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters