-
Notifications
You must be signed in to change notification settings - Fork 62
38 lines (36 loc) · 1.08 KB
/
gradle.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
name: Gradle CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
strategy:
matrix:
java-version: ["8", "11", "17", "21"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ matrix.java-version }}
- name: Build language server with Gradle
run: ./gradlew build
- name: Build VSCode extension with Gradle
working-directory: vscode-extension
run: ./gradlew build
- uses: actions/upload-artifact@v4
if: ${{ matrix.java-version == '8' }}
with:
name: groovy-language-server
path: build/libs/groovy-language-server-all.jar
if-no-files-found: error
- uses: actions/upload-artifact@v4
if: ${{ matrix.java-version == '8' }}
with:
name: groovy-vscode-extension
path: vscode-extension/build/groovy-*.vsix
if-no-files-found: error