forked from YCSRobotics/GrizzlyTime
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.11 KB
/
CI.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
name: CI
on: [pull_request, push]
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Check Spotless
shell: bash
run: |
chmod +x ./gradlew
./gradlew spotlessApply
build:
name: "Build on ${{ matrix.os }} with Java ${{ matrix.jvm }}"
runs-on: "${{ matrix.os }}-latest"
strategy:
fail-fast: false
matrix:
os: [ubuntu, windows, macos]
jvm: ['11', '17']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.jvm }}
- name: Fix permissions
if: ${{ matrix.os }} == "ubuntu" || ${{ matrix.os }} == "macos"
run: |
chmod +x ./gradlew
- name: Build ShadowJar
run: |
./gradlew shadowJar
- name: Publish ShadowJar
uses: actions/upload-artifact@v2
with:
name: grizzlytime-ci-jar
path: build/libs/