Skip to content

Commit

Permalink
🚧 Improve CI build time by limiting modules
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCrayfish committed May 30, 2024
1 parent 7741693 commit 38013e7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@ plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
}

def includeModloader(String name) {
// If building with Github Actions, only include loader we want!
String targetLoader = Boolean.getBoolean("CI") ?: System.getenv("TARGET_LOADER")
if(targetLoader == null || targetLoader == name) {
include(name)
}
}

rootProject.name = 'Backpacked'
include("common")
include("fabric")
include("forge")
include("neoforge")
includeModloader("forge")
includeModloader("fabric")
includeModloader("neoforge")

0 comments on commit 38013e7

Please sign in to comment.