Skip to content

Commit

Permalink
[CI] Do not use JBR args in CI environments
Browse files Browse the repository at this point in the history
  • Loading branch information
robotgryphon committed Jan 28, 2024
1 parent b87a640 commit 7561cbe
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,16 @@ minecraft {
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"

// JetBrains Runtime Hotswap
jvmArg '-XX:+AllowEnhancedClassRedefinition'
jvmArg '-XX:HotswapAgent=fatjar'
if(!System.getenv().containsKey("CI")) {
// JetBrains Runtime Hotswap
jvmArg '-XX:+AllowEnhancedClassRedefinition'
jvmArg '-XX:HotswapAgent=fatjar'
}

args '--username', 'Nano'
args '--width', 1920
args '--height', 1080


mods {
compactmachines {
source sourceSets.tunnels
Expand All @@ -139,9 +140,11 @@ minecraft {
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"

// JetBrains Runtime Hotswap
jvmArg '-XX:+AllowEnhancedClassRedefinition'
jvmArg '-XX:HotswapAgent=fatjar'
if(!System.getenv().containsKey("CI")) {
// JetBrains Runtime Hotswap
jvmArg '-XX:+AllowEnhancedClassRedefinition'
jvmArg '-XX:HotswapAgent=fatjar'
}

mods {
compactmachines {
Expand Down Expand Up @@ -210,10 +213,12 @@ minecraft {

forceExit false

// JetBrains Runtime Hotswap
jvmArg '-XX:+AllowEnhancedClassRedefinition'
jvmArg '-XX:HotswapAgent=fatjar'

if(!System.getenv().containsKey("CI")) {
// JetBrains Runtime Hotswap
jvmArg '-XX:+AllowEnhancedClassRedefinition'
jvmArg '-XX:HotswapAgent=fatjar'
}

mods {
compactmachines {
source sourceSets.tunnels
Expand Down

0 comments on commit 7561cbe

Please sign in to comment.