-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (35 loc) · 1009 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build
on: [ push, pull_request, workflow_dispatch ]
env:
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Execute Gradle `build` task
uses: gradle/gradle-build-action@v2
with:
arguments: build --scan
cache-read-only: |
${{ github.ref != 'refs/heads/main' &&
github.ref != 'refs/heads/dev' }}
gradle-home-cache-includes: |
caches
notifications
jdks
- name: Upload `build` report
if: always()
uses: actions/upload-artifact@v3
with:
name: BuildReport-${{ matrix.os }}
path: build/reports/