Skip to content

Commit

Permalink
✅ Kaleidoscope v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
1024-byteeeee committed Mar 30, 2024
0 parents commit da21f8f
Show file tree
Hide file tree
Showing 53 changed files with 2,670 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Bug Report
description: Something doesn't seem correct and it might be a bug
labels: []
body:
- type: textarea
id: description
attributes:
label: Bug description
description: |
A clear and concise description of what the bug is.
Is it a game crash, an unexpected behavior, or has something gone wrong?
If applicable, add screenshots to help explain the bug.
placeholder: Tell us what you see!
validations:
required: true
- type: textarea
id: to-reproduce
attributes:
label: Steps to reproduce
description: Steps to reproduce the bug
placeholder: |
1. Create a world
2. Wait until midnight
3. Hug a creeper
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: What did you expect to happen?
placeholder: The creeper explodes
- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
description: What actually happened?
placeholder: The creeper launches itself into the sky
- type: textarea
id: logs
attributes:
label: Relevant logs
description: |-
If it's a crash, send the corresponding Minecraft log in the `logs` folder, or crash report in the `crash-reports` folder, here.
Please upload the log file as an attachment, or upload the log to [pastebin](https://pastebin.com/) / [mclo.gs](https://mclo.gs/) and paste the url here.
Please refrain from pasting the entire log file directly.
Leave empty if there is none.
placeholder: https://pastebin.com/J6b7lKxR
- type: input
id: minecraft-version
attributes:
label: Minecraft version
description: The Minecraft version(s) where this bug occurs in.
placeholder: 1.15.2
validations:
required: true
- type: input
id: mod-version
attributes:
label: TemplateMod version
description: The TemplateMod version(s) where this bug occurs in.
placeholder: 1.2.3
validations:
required: true
- type: textarea
id: other-information
attributes:
label: Other information
description: Other useful information to this bug report, e.g. other related mod version(s). Leave empty if there is none.
placeholder: The issue only occurs if the player is in survival mode
- type: checkboxes
id: check-list
attributes:
label: Check list
options:
- label: I have verified that the issue persists in the latest version of the mod.
required: true
- label: I have searched the existing issues and confirmed that this is not a duplicate.
required: true
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Feature Request
description: Suggest an idea for this project
labels: []
body:
- type: textarea
id: motivation
attributes:
label: Motivation
description: Why do you want this feature? What problem do you want to solve? How can the suggested feature help with that?
placeholder: Tell us what you want!
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: Describe the feature you want, as detailed as possible
placeholder: I want to see a fancy starry sky when I look up at midnight.
validations:
required: true
- type: textarea
id: other-information
attributes:
label: Other information
description: Other useful information to this feature request. Leave empty if there is none.
79 changes: 79 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: step.build

on:
workflow_call:
inputs:
release:
type: boolean
required: false
default: false
target_subproject:
description: The subproject name of the specified Minecraft version to be built. Leave it empty to build all
type: string
required: false
default: ''

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17

- name: Cache gradle files
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
./.gradle/loom-cache
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '**/gradle.properties', '**/*.accesswidener') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Get subproject name to build
id: subproject_info
run: |
if [ "${{ inputs.target_subproject }}" != "" ]
then
echo "prefix=${{ inputs.target_subproject }}:" >> $GITHUB_OUTPUT
else
echo "prefix=" >> $GITHUB_OUTPUT
fi
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew ${{ steps.subproject_info.outputs.prefix }}build --no-daemon
env:
BUILD_ID: ${{ github.run_number }}
BUILD_RELEASE: ${{ inputs.release }}

- uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: versions/*/build/libs/

summary:
runs-on: ubuntu-22.04
needs:
- build

steps:
- uses: actions/checkout@v3

- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts
path: build-artifacts

- name: Make build summary
run: python3 .github/workflows/scripts/summary.py # Python 3.10.6
env:
TARGET_SUBPROJECT: ${{ inputs.target_subproject }}
16 changes: 16 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dev Builds

on:
push:
paths:
- "*.gradle"
- "gradle.properties"
- "src/**"
- "versions/**"
- ".github/**"
pull_request:


jobs:
build:
uses: ./.github/workflows/build.yml
29 changes: 29 additions & 0 deletions .github/workflows/matrix_includes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
{
"subproject_dir": "1.16.5"
},
{
"subproject_dir": "1.17.1"
},
{
"subproject_dir": "1.18.2"
},
{
"subproject_dir": "1.19.4"
},
{
"subproject_dir": "1.20"
},
{
"subproject_dir": "1.20.1"
},
{
"subproject_dir": "1.20.2"
},
{
"subproject_dir": "1.20.3"
},
{
"subproject_dir": "1.20.4"
}
]
39 changes: 39 additions & 0 deletions .github/workflows/matrix_prep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: step.matrix_prepare

on:
workflow_call:
inputs:
target_subproject:
description: The subproject name of the specified Minecraft version for generating matrix entry
type: string
required: false
default: ''
outputs:
matrix:
description: The generated run matrix
value: ${{ jobs.matrix_prep.outputs.matrix }}


jobs:
matrix_prep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Display context
run: |
echo ref_name = ${{ github.ref_name }}
echo target_subproject = ${{ github.event.inputs.target_subproject }}
echo target_release_tag = ${{ github.event.inputs.target_release_tag }}
- id: setmatrix
uses: JoshuaTheMiller/[email protected]
with:
# inputFile: '.github/workflows/matrix_includes.json' # Default input file path
filter: '[? `${{ github.event_name }}` == `release` || `${{ github.event.inputs.target_subproject }}` == `` || `"${{ github.event.inputs.target_subproject }}"` == subproject_dir ]'

- name: Print matrix
run: echo ${{ steps.setmatrix.outputs.matrix }}

outputs:
matrix: ${{ steps.setmatrix.outputs.matrix }}
Loading

0 comments on commit da21f8f

Please sign in to comment.