-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (60 loc) · 1.65 KB
/
build-main.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
56
57
58
59
60
61
62
63
64
---
name: Main CI/CD pipeline
on:
push:
branches:
- main
jobs:
build-main:
runs-on: ubuntu-latest
strategy:
matrix:
java: [
{ 'version': '11', 'opts': '' },
{ 'version': '17', 'opts': '' }
]
name: Build with Java ${{ matrix.java.version }} (OpenJDK)
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
name: Set up JDK ${{matrix.java.version}}
with:
distribution: temurin
java-version: ${{matrix.java.version}}
cache: maven
- name: Build with Maven
env:
MAVEN_OPTS: ${{ matrix.java.opts }}
run: ./mvnw -s .github/maven-ci-settings.xml -B clean verify
deploy:
name: Deployment
needs: build-main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
name: Set up JDK 11
with:
distribution: temurin
java-version: 11
cache: maven
- name: Deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE }}
run: |
.github/scripts/decrypt-secrets.sh
.github/scripts/deploy.sh
compatibility:
runs-on: ubuntu-latest
name: Compatibility Check
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
name: Set up JDK 11
with:
distribution: temurin
java-version: 11
cache: maven
- name: Compatibility Check
run: ./mvnw -s .github/maven-ci-settings.xml -B install revapi:check@check-compatibility -DskipTests -fae