-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (37 loc) · 1.08 KB
/
_build.yml
File metadata and controls
44 lines (37 loc) · 1.08 KB
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
name: Tests
on:
workflow_call:
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
java-version:
- "21"
- "11"
- "8"
distribution:
- "temurin"
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# We need the GPG key to sign the package.
- id: install-secret-key
name: Install GPG secret key
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
cache: "maven"
# We build in "release" mode to test the documentation.
- name: Verify with Maven
run: |
mvn --update-snapshots --no-transfer-progress \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \
verify -P release