-
Notifications
You must be signed in to change notification settings - Fork 15
34 lines (33 loc) · 989 Bytes
/
CI.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
# https://github.com/actions
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
# https://github.com/actions/cache
- uses: actions/cache@v4
with:
# https://github.com/actions/cache/blob/main/examples.md#java---gradle
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# https://github.com/gradle/wrapper-validation-action
- uses: gradle/wrapper-validation-action@v2
# https://github.com/actions/setup-java
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- run: ./gradlew -Dorg.gradle.jvmargs=-Xmx4096m