Skip to content

Commit 0d268c0

Browse files
committed
Production ready build with manual fluid mixing and handling of solid dyes in the mixer.
1 parent b862878 commit 0d268c0

File tree

115 files changed

+1412
-877
lines changed

Some content is hidden

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

115 files changed

+1412
-877
lines changed

.github/workflows/build.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout sources
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
15+
- name: Read Gradle Properties File
16+
uses: kurt-code/gha-properties@v0.0.1
17+
id: read-properties
18+
with:
19+
operation: 'read'
20+
file-path: 'gradle.properties'
21+
keys: 'java.version,minecraft.version'
22+
23+
- name: Extract patch version
24+
id: extract-patch
25+
uses: Communi-Suggestu/Cadens@0.0.2
26+
with:
27+
file: gradle.properties
28+
prefix: 'minecraft.version='
29+
30+
- name: Extract major and minor version
31+
id: extract-major-minor
32+
uses: Communi-Suggestu/Spoliatus@0.0.2
33+
with:
34+
version: ${{ steps.read-properties.outputs['minecraft.version'] }}
35+
36+
- name: Setup Java
37+
uses: actions/setup-java@v4
38+
with:
39+
distribution: 'temurin'
40+
java-version: ${{ steps.read-properties.outputs['java.version'] }}
41+
42+
- name: Setup Gradle
43+
uses: gradle/actions/setup-gradle@v4
44+
with:
45+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
46+
47+
- name: Build with Gradle
48+
run: ./gradlew assemble
49+
env:
50+
VERSION: ${{ steps.extract-major-minor.outputs.joined }}.${{ steps.extract-patch.outputs.count }}

.github/workflows/pr.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: PR Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout sources
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Read Gradle Properties File
19+
uses: kurt-code/gha-properties@v0.0.1
20+
id: read-properties
21+
with:
22+
operation: 'read'
23+
file-path: 'gradle.properties'
24+
keys: 'java.version,minecraft.version'
25+
26+
- name: Extract patch version
27+
id: extract-patch
28+
uses: Communi-Suggestu/Cadens@0.0.2
29+
with:
30+
file: gradle.properties
31+
prefix: 'minecraft.version='
32+
33+
- name: Extract major and minor version
34+
id: extract-major-minor
35+
uses: Communi-Suggestu/Spoliatus@0.0.2
36+
with:
37+
version: ${{ steps.read-properties.outputs['minecraft.version'] }}
38+
39+
- name: Setup Java
40+
uses: actions/setup-java@v4
41+
with:
42+
distribution: 'temurin'
43+
java-version: ${{ steps.read-properties.outputs['java.version'] }}
44+
45+
- name: Setup Gradle
46+
uses: gradle/actions/setup-gradle@v4
47+
with:
48+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
49+
50+
- name: Assemble
51+
run: ./gradlew assemble
52+
env:
53+
VERSION: ${{ steps.extract-major-minor.outputs.joined }}.${{ steps.extract-patch.outputs.count }}
54+
55+
- name: Test
56+
run: ./gradlew test
57+
env:
58+
VERSION: ${{ steps.extract-major-minor.outputs.joined }}.${{ steps.extract-patch.outputs.count }}

.github/workflows/publish.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- 'version/*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout sources
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Read Gradle Properties File
19+
uses: kurt-code/gha-properties@v0.0.1
20+
id: read-properties
21+
with:
22+
operation: 'read'
23+
file-path: 'gradle.properties'
24+
keys: 'java.version,minecraft.version'
25+
26+
- name: Extract patch version
27+
id: extract-patch
28+
uses: Communi-Suggestu/Cadens@0.0.2
29+
with:
30+
file: gradle.properties
31+
prefix: 'minecraft.version='
32+
33+
- name: Extract major and minor version
34+
id: extract-major-minor
35+
uses: Communi-Suggestu/Spoliatus@0.0.2
36+
with:
37+
version: ${{ steps.read-properties.outputs['minecraft.version'] }}
38+
39+
- name: Setup Java
40+
uses: actions/setup-java@v4
41+
with:
42+
distribution: 'temurin'
43+
java-version: ${{ steps.read-properties.outputs['java.version'] }}
44+
45+
- name: Setup Gradle
46+
uses: gradle/actions/setup-gradle@v4
47+
with:
48+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
49+
50+
- name: Publish to Maven
51+
run: ./gradlew publish
52+
env:
53+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
54+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
55+
VERSION: ${{ steps.extract-major-minor.outputs.joined }}.${{ steps.extract-patch.outputs.count }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,5 @@ gradle-app.setting
110110

111111
**/runs/**
112112
**/run/**
113-
**/repo/**
113+
**/repo/**
114+
**/.cache

0 commit comments

Comments
 (0)