-
Notifications
You must be signed in to change notification settings - Fork 39
56 lines (45 loc) · 1.31 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build
on:
push: {}
pull_request: {}
jobs:
gradleValidation:
name: Gradle Wrapper
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v3
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
build:
name: Build
needs: gradleValidation
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
cache: 'gradle'
java-version: 11
distribution: 'temurin'
- name: Setup Gradle Wrapper Cache
uses: actions/cache@v3
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Build Plugin
run: ./gradlew build
- name: Upload specification artifact
uses: actions/upload-artifact@v3
with:
name: sparkplug_spec
path: specification/build/docs/pdf/sparkplug_spec.pdf
if-no-files-found: error
- name: Upload coverage artifact
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: tck/build/coverage-report/**/*
if-no-files-found: error