-
-
Notifications
You must be signed in to change notification settings - Fork 132
37 lines (33 loc) · 966 Bytes
/
ci.yml
File metadata and controls
37 lines (33 loc) · 966 Bytes
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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Set up JDKs
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: |
11
21
- name: Setup Maven
run: echo "MAVEN_OPTS='-Xmx2048m'" > ~/.mavenrc
- name: Cache maven repo
uses: actions/cache@v5
env:
cache-name: cache-maven-repo
with:
# maven files are stored in `~/.m2/repository` on Linux/macOS
path: ~/.m2/repository
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.sha1') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build with Maven
run: mvn clean verify --no-transfer-progress --batch-mode --show-version