Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ jobs:

files: ${{ steps.file_info.outputs.path }}

name: ${{ format('{0} v{1} for mc{2}', steps.properties_g.outputs.mod_name, steps.properties_g.outputs.mod_version, steps.properties_v.outputs.archive_mc_version) }}
version: ${{ format('v{1}-mc{0}', steps.properties_v.outputs.archive_mc_version, steps.properties_g.outputs.mod_version) }}
name: ${{ format('[{0}] {1} v{2} for mc{3}', matrix.mod_brand, steps.properties_g.outputs.mod_name, steps.properties_g.outputs.mod_version, steps.properties_v.outputs.archive_mc_version) }}
version: ${{ format('v{1}-mc{0}-{2}', steps.properties_v.outputs.archive_mc_version, steps.properties_g.outputs.mod_version, matrix.mod_brand) }}
version-type: release

loaders: fabric
loaders: ${{ matrix.mod_brand }}
game-versions: ${{ steps.properties_v.outputs.game_versions }}
game-version-filter: any
dependencies: '' # declare the dependencies explicitly, so mc-publish won't try to load from fabric.mod.json
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scripts/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ def main():

matrix_entries = []
for subproject in subprojects:
mod_brand = subproject.split('-')[-1]
assert mod_brand in ['fabric', 'forge', 'neoforge']
matrix_entries.append({
'subproject': subproject,
'mod_brand': mod_brand,
})
matrix = {'include': matrix_entries}
with open(os.environ['GITHUB_OUTPUT'], 'w') as f:
Expand Down
32 changes: 25 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'maven-publish'
id 'com.github.hierynomus.license' version '0.16.1' apply false
id 'fabric-loom' version '1.11-SNAPSHOT' apply false
id 'dev.architectury.loom' version '1.10-SNAPSHOT' apply false

// https://github.com/ReplayMod/preprocessor
// https://github.com/Fallen-Breath/preprocessor
Expand All @@ -12,14 +12,32 @@ plugins {
}

preprocess {
strictExtraMappings = false
strictExtraMappings = false

def mc114 = createNode('1.14.4', 1_14_04, '')
def mc1202 = createNode('1.20.2', 1_20_02, '')
def mc1212 = createNode('1.21.2', 1_21_02, '')
def mc1152_fabric = createNode('1.15.2-fabric', 1_15_02, '')
def mc1171_fabric = createNode('1.17.1-fabric', 1_17_01, '')
def mc1202_fabric = createNode('1.20.2-fabric', 1_20_02, '')
def mc1212_fabric = createNode('1.21.2-fabric', 1_21_02, '')

mc114 .link(mc1202 , null)
mc1202 .link(mc1212 , null)
def mc1152_forge = createNode('1.15.2-forge', 1_15_02, '')
def mc1171_forge = createNode('1.17.1-forge', 1_17_01, '')
def mc1202_forge = createNode('1.20.2-forge', 1_20_02, '')
def mc1212_forge = createNode('1.21.2-forge', 1_21_02, '')

def mc1206_neoforge = createNode('1.20.6-neoforge', 1_20_06, '')
def mc1212_neoforge = createNode('1.21.2-neoforge', 1_21_02, '')

mc1152_fabric .link(mc1171_fabric , null)
mc1171_fabric .link(mc1202_fabric , null)
mc1202_fabric .link(mc1212_fabric , null)

mc1152_fabric .link(mc1152_forge , null)
mc1171_fabric .link(mc1171_forge , null)
mc1202_fabric .link(mc1202_forge , null)
mc1212_fabric .link(mc1212_forge , null)

mc1202_fabric.link(mc1206_neoforge, null)
mc1212_fabric.link(mc1212_neoforge, null)
}

tasks.register('buildAndGather') {
Expand Down
Loading