-
-
Notifications
You must be signed in to change notification settings - Fork 79
53 lines (46 loc) · 1.39 KB
/
ci-build.yaml
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
name: Build CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
# The following concurrency group cancels in-progress jobs or runs on pull_request events only;
# if github.head_ref is undefined, the concurrency group will fallback to the run ID,
# which is guaranteed to be both unique and defined for the run.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version:
- 8
- 11
- 17
- 21
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4.0.0
with:
distribution: "temurin"
java-version: "${{ matrix.java-version }}"
cache: "gradle"
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
- name: Build with Gradle
uses: gradle/gradle-build-action@982da8e78c05368c70dac0351bb82647a9e9a5d2
with:
arguments: build
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4.3.0
with:
name: assembled-plugin-jdk_${{ matrix.java-version }}
path: build/