2020-09-09 20:47:02 +02:00
|
|
|
name: Build
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2022-08-21 20:38:42 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2020-09-09 20:47:02 +02:00
|
|
|
# We want to run on external PRs, but not on our own internal PRs as they'll be run
|
|
|
|
# by the push to the branch.
|
|
|
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
2021-12-15 01:34:28 +01:00
|
|
|
- name: Set up JDK 17
|
2020-09-09 20:47:02 +02:00
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2021-12-15 01:34:28 +01:00
|
|
|
java-version: 17
|
2020-09-09 20:47:02 +02:00
|
|
|
|
|
|
|
- name: Cache Gradle
|
|
|
|
id: cache-gradle
|
2023-04-22 18:11:28 +02:00
|
|
|
uses: actions/cache@v2.1.8
|
2020-09-09 20:47:02 +02:00
|
|
|
with:
|
|
|
|
path: ~/.gradle
|
|
|
|
key: ${{ runner.os }}-gradle
|
|
|
|
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Grant execute permission to gradlew
|
|
|
|
run: chmod +x gradlew
|
|
|
|
|
|
|
|
- name: Build
|
2023-02-27 11:29:24 +01:00
|
|
|
run: ./gradlew build -x test --warning-mode all
|
2020-09-09 20:47:02 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|