forked from svn2github/nsl-assembler
-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (29 loc) · 781 Bytes
/
build.yml
File metadata and controls
37 lines (29 loc) · 781 Bytes
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
name: Build and Test
on:
push:
branches: main
pull_request:
workflow_dispatch:
jobs:
build:
name: Build with Gradle
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '17', '21' ] # all the LTS versions
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Check code formatting
if: matrix.java == '17' || matrix.java == '21'
run: ./gradlew spotlessCheck --no-daemon
- name: Build with Gradle
run: ./gradlew build --no-daemon