Skip to content
This repository was archived by the owner on Aug 13, 2023. It is now read-only.

Commit b2ed64c

Browse files
author
Lumaa
committed
Merge remote-tracking branch 'origin/master'
2 parents 0389182 + a99d938 commit b2ed64c

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Automatically build the project and run any configured tests for every push
2+
# and submitted pull request. This can help catch issues that only occur on
3+
# certain platforms or Java versions, and provides a first line of defence
4+
# against bad commits.
5+
6+
name: build
7+
on: [pull_request, push]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
java: [
14+
17,
15+
]
16+
# and run on both Linux and Windows
17+
os: [ubuntu-22.04, windows-2022]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- name: checkout repository
21+
uses: actions/checkout@v3
22+
- name: validate gradle wrapper
23+
uses: gradle/wrapper-validation-action@v1
24+
- name: setup jdk ${{ matrix.java }}
25+
uses: actions/setup-java@v3
26+
with:
27+
java-version: ${{ matrix.java }}
28+
distribution: 'microsoft'
29+
- name: make gradle wrapper executable
30+
if: ${{ runner.os != 'Windows' }}
31+
run: chmod +x ./gradlew
32+
- name: build
33+
run: ./gradlew build
34+
- name: capture build artifacts
35+
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
36+
uses: actions/upload-artifact@v3
37+
with:
38+
name: Artifacts
39+
path: build/libs/

0 commit comments

Comments
 (0)