2020-08-11 17:44:45 +00:00
|
|
|
name: Run Android build
|
|
|
|
|
|
|
|
on:
|
2024-08-09 20:20:17 +00:00
|
|
|
workflow_dispatch:
|
2020-08-11 17:44:45 +00:00
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'dist/**.js'
|
|
|
|
|
|
|
|
jobs:
|
2021-02-02 23:33:00 +00:00
|
|
|
build:
|
2020-08-11 17:44:45 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
- macos-latest
|
2022-04-22 03:28:18 +00:00
|
|
|
|
|
|
|
# Disabled, because daveol/SampleApplication is missing
|
|
|
|
if: ${{ false }}
|
|
|
|
|
2020-08-11 17:44:45 +00:00
|
|
|
steps:
|
2023-11-21 19:25:09 +00:00
|
|
|
- uses: actions/checkout@v4
|
2020-08-11 17:44:45 +00:00
|
|
|
with:
|
|
|
|
repository: daveol/SampleApplication
|
|
|
|
|
2023-11-21 19:25:09 +00:00
|
|
|
- uses: actions/checkout@v4
|
2020-08-11 17:44:45 +00:00
|
|
|
with:
|
|
|
|
path: ./build/
|
|
|
|
|
2023-09-25 00:03:19 +00:00
|
|
|
- name: Set up JDK 17
|
2023-12-04 16:51:26 +00:00
|
|
|
uses: actions/setup-java@v4
|
2020-08-11 17:44:45 +00:00
|
|
|
with:
|
2023-09-25 00:03:19 +00:00
|
|
|
java-version: 17
|
2023-09-25 00:53:00 +00:00
|
|
|
distribution: 'temurin'
|
2020-08-11 17:44:45 +00:00
|
|
|
|
|
|
|
- name: Setup Android SDK
|
|
|
|
id: 'setup-android'
|
|
|
|
uses: ./build/
|
|
|
|
|
|
|
|
- name: Build SampleApplication
|
|
|
|
if: runner.os != 'windows'
|
|
|
|
run: ./gradlew --no-daemon build
|
|
|
|
|
|
|
|
- name: Build SampleApplication (Windows)
|
|
|
|
if: runner.os == 'windows'
|
|
|
|
run: .\gradlew.bat --no-daemon build
|