setup-android/.github/workflows/run-test.yml

48 lines
1,004 B
YAML
Raw Normal View History

2020-07-14 09:49:14 -07:00
name: run-test
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
- releases/*
paths-ignore:
- '**.md'
jobs:
build:
2020-07-25 09:49:54 -07:00
runs-on: ${{ matrix.os }}
2020-07-14 09:49:14 -07:00
strategy:
matrix:
2020-07-25 09:49:54 -07:00
os:
2020-07-14 09:49:14 -07:00
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- uses: actions/checkout@v2
with:
2020-07-25 09:49:54 -07:00
repository: daveol/SampleApplication
2020-07-25 09:54:43 -07:00
- uses: actions/checkout@v2
with:
2020-07-25 09:59:34 -07:00
path: ../setup-android/
2020-07-25 09:54:43 -07:00
2020-07-14 09:49:14 -07:00
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
2020-07-25 09:49:54 -07:00
2020-07-14 09:49:14 -07:00
- name: Setup Android SDK
2020-07-25 09:54:43 -07:00
id: 'setup-android'
2020-07-25 10:26:54 -07:00
uses: ./../setup-android/
2020-07-25 09:49:54 -07:00
- name: Build SampleApplication
2020-07-14 09:49:14 -07:00
if: runner.os != 'windows'
2020-07-25 09:49:54 -07:00
run: ./gradlew --no-daemon build
- name: Build streetcomplete (Windows)
2020-07-14 09:49:14 -07:00
if: runner.os == 'windows'
2020-07-25 09:49:54 -07:00
run: .\gradlew.bat --no-daemon build