Skip to content

Commit 4f53f57

Browse files
committed
wip: more elegant approach
1 parent 78b3076 commit 4f53f57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+547
-383
lines changed

.github/workflows/lifecycle.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,44 @@ concurrency: # FIXME: prevent release commit cancellation
2828
cancel-in-progress: true
2929

3030
jobs:
31+
testbuild:
32+
name: TestBuild
33+
runs-on: blacksmith-32vcpu-ubuntu-2204
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
with:
38+
fetch-depth: 1
39+
40+
- if: steps.cache.outputs.cache-hit != 'true'
41+
name: Setup Java
42+
uses: useblacksmith/setup-java@v5
43+
with:
44+
distribution: temurin
45+
java-version: 21
46+
47+
- if: steps.cache.outputs.cache-hit != 'true'
48+
name: Setup Gradle
49+
uses: useblacksmith/setup-gradle/setup-gradle@v5
50+
51+
- if: |
52+
steps.cache.outputs.cache-hit != 'true'
53+
&& !inputs.release
54+
name: Gradle build
55+
run: >
56+
./gradlew build --stacktrace
57+
58+
- if: inputs.upload
59+
name: Upload artifacts
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: jars
63+
path: |
64+
**/build/libs/*.jar
65+
3166
release-please:
3267
name: Release Please
68+
if: github.event_name == 'fake' # FIXME: remove, testing purposes
3369
runs-on: blacksmith-2vcpu-ubuntu-2204
3470
outputs:
3571
release_created: ${{ steps.release-please.outputs.release_created }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build/
33
!gradle/wrapper/gradle-wrapper.jar
44
!**/src/main/**/build/
55
!**/src/test/**/build/
6+
build.properties
67

78
### IntelliJ IDEA ###
89
.idea

0 commit comments

Comments
 (0)