2020-08-11 16:01:48 +00:00
|
|
|
name: Run Android build
|
2020-07-14 16:49:14 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
push:
|
|
|
|
branches:
|
2020-08-11 16:01:48 +00:00
|
|
|
- main
|
2020-07-14 16:49:14 +00:00
|
|
|
- releases/*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-07-25 16:49:54 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-07-14 16:49:14 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-07-25 16:49:54 +00:00
|
|
|
os:
|
2020-07-14 16:49:14 +00:00
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
- macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-07-14 20:31:46 +00:00
|
|
|
with:
|
2020-07-25 16:49:54 +00:00
|
|
|
repository: daveol/SampleApplication
|
|
|
|
|
2020-07-25 16:54:43 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
2020-07-25 17:32:47 +00:00
|
|
|
path: ./build/
|
2020-07-25 16:54:43 +00:00
|
|
|
|
2020-07-14 16:49:14 +00:00
|
|
|
- name: Set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
2020-07-25 16:49:54 +00:00
|
|
|
|
2020-07-14 16:49:14 +00:00
|
|
|
- name: Setup Android SDK
|
2020-07-25 16:54:43 +00:00
|
|
|
id: 'setup-android'
|
2020-07-25 17:32:47 +00:00
|
|
|
uses: ./build/
|
2020-07-25 16:49:54 +00:00
|
|
|
|
|
|
|
- name: Build SampleApplication
|
2020-07-14 16:49:14 +00:00
|
|
|
if: runner.os != 'windows'
|
2020-07-25 16:49:54 +00:00
|
|
|
run: ./gradlew --no-daemon build
|
|
|
|
|
2020-07-25 18:51:01 +00:00
|
|
|
- name: Build SampleApplication (Windows)
|
2020-07-14 16:49:14 +00:00
|
|
|
if: runner.os == 'windows'
|
2020-07-25 16:49:54 +00:00
|
|
|
run: .\gradlew.bat --no-daemon build
|