Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 73d2d82

Browse files
committed
Update CI workflow
Signed-off-by: Lilly Rose Berner <[email protected]>
1 parent 97b9c0b commit 73d2d82

File tree

2 files changed

+49
-48
lines changed

2 files changed

+49
-48
lines changed

.github/workflows/build-java.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: build-java
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
strategy:
7+
matrix:
8+
java: [
9+
17,
10+
21,
11+
]
12+
os: [
13+
ubuntu-22.04,
14+
windows-2022
15+
]
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- name: checkout repository
19+
uses: actions/checkout@v4
20+
- name: setup jdk
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: temurin
24+
java-version: ${{ matrix.java }}
25+
- name: restore cached dependencies
26+
uses: actions/cache/restore@v4
27+
with:
28+
path: |
29+
.gradle/
30+
~/.gradle/caches
31+
~/.gradle/wrapper
32+
key: ${{ runner.os }}-Gradle
33+
- name: build
34+
run: ./gradlew build --no-daemon --warning-mode=all
35+
- name: capture build artifacts
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: server-stats-artifacts
39+
path: build/libs
40+
if-no-files-found: error
41+
- name: cache downloaded dependencies
42+
if: ${{ github.ref_name == 'stardust' }}
43+
uses: actions/cache/save@v4
44+
with:
45+
path: |
46+
.gradle/
47+
~/.gradle/caches
48+
~/.gradle/wrapper
49+
key: ${{ runner.os }}-Gradle

.github/workflows/build.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)