-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 946 Bytes
/
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
name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
java_version: [ 17 ]
runs-on: ubuntu-latest
name: Build (Java ${{ matrix.java_version }})
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up Java ${{ matrix.java_version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java_version }}
distribution: microsoft
- name: Prepare Gradle wrapper
run: chmod +x ./gradlew
- name: Build
run: ./gradlew build
- name: Upload artifacts
# if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/