mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-10 17:20:56 -10:00
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2 to 3. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
name: Android
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- '*.md'
|
|
pull_request:
|
|
types: [ opened, synchronize ]
|
|
paths-ignore:
|
|
- '*.md'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install gettext
|
|
run: sudo apt-get update && sudo apt-get install -y gettext
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: set up JDK 11
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'adopt'
|
|
cache: gradle
|
|
|
|
- name: Cache CMake build folder
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: android-project/app/.cxx
|
|
key: ${{ github.workflow }}-v1-${{ github.sha }}
|
|
restore-keys: ${{ github.workflow }}-v1-
|
|
|
|
- name: Build
|
|
working-directory: ${{github.workspace}}
|
|
shell: bash
|
|
run: cd android-project && ./gradlew assembleDebug
|
|
|
|
- name: Upload-Package
|
|
if: ${{ !env.ACT }}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: devilutionx-debug.apk
|
|
path: android-project/app/build/outputs/apk/debug/app-debug.apk
|