mirror of
https://github.com/android-actions/setup-android.git
synced 2024-11-27 12:02:03 +00:00
93337aeebc
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: Run Android build
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'dist/**.js'
|
|
- '.github/*.json'
|
|
push:
|
|
branches:
|
|
- main
|
|
- releases/*
|
|
paths:
|
|
- 'dist/**.js'
|
|
- '.github/*.json'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- windows-latest
|
|
- macos-latest
|
|
|
|
# Disabled, because daveol/SampleApplication is missing
|
|
if: ${{ false }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
repository: daveol/SampleApplication
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
path: ./build/
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: 17
|
|
distribution: 'temurin'
|
|
|
|
- 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
|