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

Commit 99e498c

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

File tree

2 files changed

+48
-48
lines changed

2 files changed

+48
-48
lines changed

.github/workflows/build-java.yaml

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

.github/workflows/build.yaml

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

0 commit comments

Comments
 (0)