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:
|
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
operating-system:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
- macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-07-14 13:31:46 -07:00
|
|
|
with:
|
|
|
|
path: setup-android
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: westnordost/StreetComplete
|
|
|
|
path: streetcomplete
|
2020-07-14 09:49:14 -07:00
|
|
|
- name: Set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
- name: Setup Android SDK
|
|
|
|
id: 'setup-android'
|
2020-07-14 13:31:46 -07:00
|
|
|
uses: ./setup-android/
|
2020-07-14 09:49:14 -07:00
|
|
|
- name: Run sdkmanager
|
|
|
|
if: runner.os != 'windows'
|
|
|
|
run: |
|
2020-07-14 13:31:46 -07:00
|
|
|
cd streetcomplete
|
|
|
|
./gradlew build
|
|
|
|
- name: Build streetcomplete (Windows)
|
2020-07-14 09:49:14 -07:00
|
|
|
if: runner.os == 'windows'
|
|
|
|
run: |
|
2020-07-14 13:31:46 -07:00
|
|
|
cd streetcomplete
|
|
|
|
.\gradlew.bat build
|