Skip to content

Commit 7a64959

Browse files
authored
refactor: GitHub Actions build workflow to include caching
1 parent d0796c9 commit 7a64959

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,16 @@ name: Build
22

33
on:
44
push:
5-
branches: [main, master, develop] # ignore noise from short-lived feature branches
5+
branches: [main, master, develop]
66
pull_request:
77
workflow_dispatch:
88

9-
# Cancel any in-progress run on the same branch/PR when a new one is triggered.
10-
# This prevents redundant builds piling up while you're actively pushing.
119
concurrency:
1210
group: ${{ github.workflow }}-${{ github.ref }}
1311
cancel-in-progress: true
1412

1513
env:
16-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true # opt into Node.js 24 ahead of June 2026 forced migration
14+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
1715

1816
jobs:
1917
build:
@@ -32,12 +30,12 @@ jobs:
3230
java-version: '21'
3331

3432
- name: Set up Gradle
35-
uses: gradle/actions/setup-gradle@v4
33+
uses: gradle/actions/setup-gradle@v6
3634

3735
- name: Build
3836
run: |
3937
chmod +x ./gradlew
40-
./gradlew --no-daemon shadowJar
38+
./gradlew shadowJar
4139
4240
- name: Collect JARs
4341
run: |
@@ -52,7 +50,7 @@ jobs:
5250
- name: Upload JARs
5351
uses: actions/upload-artifact@v4
5452
with:
55-
name: jars-${{ github.sha }} # include commit SHA so each run's artifact is uniquely identifiable
53+
name: jars-${{ github.sha }}
5654
path: jars/*.jar
5755
if-no-files-found: error
5856
retention-days: 14

0 commit comments

Comments
 (0)