-
Notifications
You must be signed in to change notification settings - Fork 950
43 lines (42 loc) · 1.26 KB
/
gradle.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
43
# Definition of GitHub Actions.
# Designed to working both LINE's and forked repository.
#
# Note:
# Memory:
# VM Spec = 2core, 7G RAM. as of 2019-10. https://help.github.com/en/github/automating-your-workflow-with-github-actions/virtual-environments-for-github-actions
# There are possiblity that speed up build by setting xmx manually. But using default now.
# Gradle Deamon:
# Disabled via appending ~/.gradle/gradle.properties
name: CI
on:
push:
pull_request:
merge_group:
jobs:
test:
name: test (JDK ${{ matrix.java }})
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
java: # We want to test on LTSs.
- '17'
- '21'
steps:
- name: actions/setup-java@v3 (JDK ${{ matrix.java }})
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
architecture: x64
- uses: actions/checkout@v4
with:
submodules: true
- run: |
mkdir -p ~/.gradle
echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties
- run: ./gradlew -v
- run: cd generator && mvn package && cd ..
- run: python3 generate-code.py
- run: ./gradlew build