Skip to content

Commit

Permalink
Temporary workaround for Loom 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Sep 28, 2024
1 parent 6e43ed6 commit 2949cdb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def main():
if mainCommand == "publishToLocalAndTest":
commandList = [
[GRADLE_PREFIX + " publishToMavenLocal unifyMappings", True],
["cd test-mod && " + GRADLE_PREFIX + " build genSources", False]
["cd test-mod && " + GRADLE_PREFIX + " build", False],
["cd test-mod && " + GRADLE_PREFIX + " genSources", False]
]
elif mainCommand == "publish":
commandList = [
Expand All @@ -28,7 +29,8 @@ def main():
commandList = [
[GRADLE_PREFIX + " build javadocJar checkMappings mapNamedJar unifyMappings", True],
[GRADLE_PREFIX + " publishToMavenLocal unifyMappings", True],
["cd test-mod && " + GRADLE_PREFIX + " build genSources", False]
["cd test-mod && " + GRADLE_PREFIX + " build", False],
["cd test-mod && " + GRADLE_PREFIX + " genSources", False]
]

failedVersions = []
Expand All @@ -37,14 +39,20 @@ def main():
testedVersion = [version for version in versions if version not in failedVersions]
print("Running command '" + command[0] + "' for versions " + ", ".join(testedVersion))

shouldStop = False

for version in testedVersion:
print("Running command for version " + version)
exitCode = yarn.run_command_with_mcversion(version, command[0])

if exitCode != 0:
failedVersions.append(version)
if command[1]:
shouldStop = True
break

if shouldStop:
break

if len(failedVersions) < 1:
exit(0)
Expand Down

0 comments on commit 2949cdb

Please sign in to comment.