Skip to content

Commit

Permalink
[Build] Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rmheuer committed Aug 30, 2023
1 parent 479fec2 commit 11694b1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Format & Build

on:
push:
branches: [main]

jobs:
workflow:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: axel-op/googlejavaformat-action@v3
with:
args: "--replace --aosp"
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Gradle Build
uses: gradle/gradle-build-action@v2
with:
arguments: build
22 changes: 22 additions & 0 deletions .github/workflows/on_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Gradle Build
on:
pull_request: {}
push:
branches:
- '*'
- '*/*'
- '**'
- '!main'
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Gradle Build
uses: gradle/gradle-build-action@v2
with:
arguments: build

0 comments on commit 11694b1

Please sign in to comment.