We run validation workflows on push, but we do this for every branch, so dependabot PRs run every validation twice. We only really want push validation for the main branch.
26 lines
414 B
YAML
26 lines
414 B
YAML
name: Android
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build (${{ matrix.mode }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
mode: [Debug, Release]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-android
|
|
|
|
- name: Build
|
|
run: ./gradlew assemble${{ matrix.mode }}
|