diff --git a/.gitea/workflows/test-macos-build.yml b/.gitea/workflows/test-macos-build.yml index 18b34ee4..7609692a 100644 --- a/.gitea/workflows/test-macos-build.yml +++ b/.gitea/workflows/test-macos-build.yml @@ -14,19 +14,6 @@ jobs: with: lfs: true fetch-depth: 0 - - # Cache Unreal Engine build artifacts to speed up builds - - name: Cache UE build artifacts - uses: actions/cache@v3 - with: - path: | - ./Intermediate - ./DerivedDataCache - ./Saved/StagedBuilds - key: ${{ runner.os }}-ue-build-${{ hashFiles('LuckyWorld.uproject') }}-${{ hashFiles('Config/**/*.ini') }} - restore-keys: | - ${{ runner.os }}-ue-build-${{ hashFiles('LuckyWorld.uproject') }}- - ${{ runner.os }}-ue-build- # Setup environment for build - name: Setup environment @@ -109,19 +96,19 @@ jobs: echo "Checking build logs for common issues..." # Check for the specific GlobalDefinitions error - if grep -q "GlobalDefinitions.*This is not allowed" "$GITHUB_WORKSPACE"/*.log 2>/dev/null || grep -q "BuildEnvironment = TargetBuildEnvironment.Unique" "$GITHUB_WORKSPACE"/*.log 2>/dev/null; then + if grep -q "GlobalDefinitions.*This is not allowed" "$GITHUB_WORKSPACE"/*.log 2>/dev/null || grep -q "BuildEnvironment\|bOverrideBuildEnvironment" "$GITHUB_WORKSPACE"/*.log 2>/dev/null; then echo "🔍 Found issue with GlobalDefinitions in build target." - echo "⚠️ Fix required in LuckyWorld.Target.cs - need to add BuildEnvironment = TargetBuildEnvironment.Unique;" + echo "⚠️ Fix required in LuckyWorld.Target.cs - need to add bOverrideBuildEnvironment = true;" echo "Fix suggestion for LuckyWorld.Target.cs:" echo "Add this line in the constructor:" - echo " BuildEnvironment = TargetBuildEnvironment.Unique;" + echo " bOverrideBuildEnvironment = true;" echo "" echo "Example:" echo " public LuckyWorldTarget(TargetInfo Target) : base(Target)" echo " {" echo " Type = TargetType.Game;" echo " DefaultBuildSettings = BuildSettingsVersion.V5;" - echo " BuildEnvironment = TargetBuildEnvironment.Unique; // Add this line" + echo " bOverrideBuildEnvironment = true; // Add this line" echo " " echo " // Rest of your constructor..." echo " }" diff --git a/Source/LuckyWorld.Target.cs b/Source/LuckyWorld.Target.cs index 233a574d..459aed18 100644 --- a/Source/LuckyWorld.Target.cs +++ b/Source/LuckyWorld.Target.cs @@ -9,7 +9,7 @@ public class LuckyWorldTarget : TargetRules { Type = TargetType.Game; DefaultBuildSettings = BuildSettingsVersion.V5; - BuildEnvironment = TargetBuildEnvironment.Unique; + bOverrideBuildEnvironment = true; ExtraModuleNames.AddRange( new string[] { "LuckyWorld" } );