Skip to content

Commit 4ab8a53

Browse files
authored
Document the CI scripts, Polish update-base script a bit.
1 parent f0ecc11 commit 4ab8a53

File tree

5 files changed

+25
-2
lines changed

5 files changed

+25
-2
lines changed

.github/workflows/build.yml

+12
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,46 @@
1+
# Clones the repository which then begins with validating the Gradle Wrapper checksum,
2+
# If the checksum completes, the script then sets up the JDK we need and begins compiling the software,
3+
# Finally, If the compiled files have been pushed out to the "(something)/build/libs/" directory - It gets uploaded to GitHub.
4+
15
name: Build Figura using Gradle
26
on: [pull_request, push]
7+
38
jobs:
49
build:
510
if: github.actor != 'weblate'
611
runs-on: ubuntu-22.04
712
steps:
813
- name: Checkout Repository
914
uses: actions/checkout@v4
15+
1016
- name: Validate Gradle wrapper
1117
uses: gradle/wrapper-validation-action@v1
18+
1219
- name: Set up JDK 17
1320
uses: actions/setup-java@v3
1421
with:
1522
distribution: 'temurin'
1623
java-version: 17
1724
check-latest: true
25+
1826
- name: Build using Gradle
1927
run: ./gradlew build
28+
2029
- name: Merge Fabric and Forge JARs
2130
run: ./gradlew mergeJars
31+
2232
- name: Upload Fabric artifacts to GitHub
2333
uses: actions/upload-artifact@v3
2434
with:
2535
name: Fabric-Artifacts
2636
path: fabric/build/libs/
37+
2738
- name: Upload Forge artifacts to GitHub
2839
uses: actions/upload-artifact@v3
2940
with:
3041
name: Forge-Artifacts
3142
path: forge/build/libs/
43+
3244
- name: Upload Merged JAR to GitHub
3345
uses: actions/upload-artifact@v3
3446
with:

.github/workflows/update-base.yaml renamed to .github/workflows/update-base.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Clones the repository which then begins with searching for modified commits,
2+
# If found, The workflow in assets repository is then called.
3+
14
name: Update Base Strings
25

36
env:
@@ -14,7 +17,7 @@ jobs:
1417
update-base:
1518
runs-on: ubuntu-22.04
1619
steps:
17-
- name: Checkout
20+
- name: Checkout Repository
1821
uses: actions/checkout@v4
1922
with:
2023
fetch-depth: ${{ github.event.commits.size }}
@@ -26,7 +29,7 @@ jobs:
2629
- name: Trigger Workflow in Assets Repository
2730
uses: benc-uk/workflow-dispatch@v1
2831
with:
29-
workflow: update-base.yaml
32+
workflow: update-base.yml
3033
ref: main
3134
inputs: |
3235
{

.gitpod.Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Sets up the GitPod shell using the Java 17 workspace which then
2+
# also sets SDKMAN for GitPod as finalization.
3+
14
FROM gitpod/workspace-java-17
25
USER gitpod
36

.gitpod.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Sets up the VScode extensions required for our GitPod script,
2+
# which includes notifying user if port "25565" should be opened.
3+
14
image:
25
file: .gitpod.Dockerfile
36

jitpack.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Deploys the latest stable JDK available and sets it to default without having to manually specify it here,
2+
# Which includes using temurin as the distribution.
13
before_install:
24
- curl -s "https://get.sdkman.io" | bash
35
- source ~/.sdkman/bin/sdkman-init.sh

0 commit comments

Comments
 (0)