-
Notifications
You must be signed in to change notification settings - Fork 16
40 lines (34 loc) · 992 Bytes
/
build-sdk.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
name: build
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
build:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
- name: Cache Maven Wrapper
uses: actions/cache@v2
with:
path: cd sdk/ ./.mvn/wrapper/maven-wrapper.jar
key: ${{ runner.os }}-maven-wrapper-${{ hashFiles('./.mvn/wrapper/maven-wrapper.properties') }}
restore-keys: ${{ runner.os }}-maven-wrapper
- name: Cache Maven Packages
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-repository
- name: Maven Verify
run: cd sdk/ && ./mvnw --batch-mode verify