-
Notifications
You must be signed in to change notification settings - Fork 9
85 lines (67 loc) · 1.83 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: build
on:
push:
branches:
- master
env:
XQT_PLATFORM: 'release'
GRADLE_VERSION: 8.9
jobs:
plugin:
strategy:
fail-fast: false
matrix:
idea-version: [
IC-2022.3,
IC-2023.1,
IC-2023.2,
IC-2023.3,
IC-2024.1,
IC-2024.2,
IC-2024.3,
LATEST-EAP-SNAPSHOT
]
include:
- java-version: 17
idea-version: IC-2022.3
- java-version: 17
idea-version: IC-2023.1
- java-version: 17
idea-version: IC-2023.2
- java-version: 17
idea-version: IC-2023.3
- java-version: 17
idea-version: IC-2024.1
- java-version: 21
idea-version: IC-2024.2
- java-version: 21
idea-version: IC-2024.3
- java-version: 21
idea-version: LATEST-EAP-SNAPSHOT
runs-on: ubuntu-latest
timeout-minutes: 30
env:
IDEA_VERSION: ${{ matrix.idea-version }}
steps:
- name: Source Code Checkout
uses: actions/checkout@v3
- name: Setup JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Setup Gradle ${{ env.GRADLE_VERSION }}
uses: gradle/gradle-build-action@v2
with:
gradle-version: ${{ env.GRADLE_VERSION }}
- name: Build
run: gradle :assemble
- name: Run Tests
run: gradle test
- name: Build Plugin
run: gradle buildPlugin
- name: Upload Plugin Jar
uses: actions/upload-artifact@v3
with:
name: xquery-intellij-plugin-${{ matrix.idea-version }}
path: build/distributions/xquery-intellij-plugin-*.zip