Skip to content

Commit 4d985fb

Browse files
committed
Build action w/ better caching
1 parent c19ab24 commit 4d985fb

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
push
5+
6+
jobs:
7+
build:
8+
if: github.repository != 'CleanroomMC/TemplateDevEnv'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v3
13+
14+
- name: Setup Java 17
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '17'
18+
distribution: 'zulu'
19+
20+
- name: Setup Gradle
21+
uses: gradle/actions/setup-gradle@v3
22+
with:
23+
build-scan-publish: true
24+
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
25+
build-scan-terms-of-use-agree: "yes"
26+
27+
- name: Build with Gradle
28+
run: ./gradlew --build-cache --info --stacktrace build
29+
30+
- name: Upload Artifact
31+
uses: actions/upload-artifact@v4
32+
with:
33+
path: build/libs/
34+
if-no-files-found: error
35+
compression-level: 1

0 commit comments

Comments
 (0)