Skip to content

Commit

Permalink
dropping 5.2 from the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
YasserNezzari committed Feb 26, 2024
1 parent 4eb938c commit 5f179c8
Showing 1 changed file with 1 addition and 61 deletions.
62 changes: 1 addition & 61 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ variables:
ENGINE_PATH_UE5_3: "C:/Program Files/Epic Games/UE_5.3"
ENGINE_UAT_PATH_UE5_3: "$ENGINE_PATH_UE5_3/Engine/Build/BatchFiles/RunUAT.bat"

ENGINE_PATH_UE5_2: "C:/Program Files/Epic Games/UE_5.2"
ENGINE_UAT_PATH_UE5_2: "$ENGINE_PATH_UE5_2/Engine/Build/BatchFiles/RunUAT.bat"

# this holds the unreal version
UNREAL_ENGINE_BUILD_VERSION_FILE: "$ENGINE_PATH/Engine/Build/Build.version"
UNREAL_ENGINE_BUILD_VERSION_FILE_UE5_3: "$ENGINE_PATH_UE5_3/Engine/Build/Build.version"
UNREAL_ENGINE_BUILD_VERSION_FILE_UE5_2: "$ENGINE_PATH_UE5_2/Engine/Build/Build.version"

VERSIONTRUNC: "Unknown"

Expand Down Expand Up @@ -75,22 +71,16 @@ build:build-project:
- $UNREAL_VERSION_CONTENT_UE5_3 = Get-Content -Raw -Path $UNREAL_ENGINE_BUILD_VERSION_FILE_UE5_3 | ConvertFrom-Json
- $UNREAL_VERSION_UE5_3 = $UNREAL_VERSION_CONTENT_UE5_3.MajorVersion.ToString() + "." + $UNREAL_VERSION_CONTENT_UE5_3.MinorVersion.ToString() + "." + $UNREAL_VERSION_CONTENT_UE5_3.PatchVersion.ToString()

- $UNREAL_VERSION_CONTENT_UE5_2 = Get-Content -Raw -Path $UNREAL_ENGINE_BUILD_VERSION_FILE_UE5_2 | ConvertFrom-Json
- $UNREAL_VERSION_UE5_2 = $UNREAL_VERSION_CONTENT_UE5_2.MajorVersion.ToString() + "." + $UNREAL_VERSION_CONTENT_UE5_2.MinorVersion.ToString() + "." + $UNREAL_VERSION_CONTENT_UE5_2.PatchVersion.ToString()

- echo "$UNREAL_VERSION"
- echo "$UNREAL_VERSION_UE5_3"
- echo "$UNREAL_VERSION_UE5_2"


- echo "$ENGINE_PATH"
- echo "$ENGINE_PATH_UE5_3"
- echo "$ENGINE_PATH_UE5_2"
- echo "$PROJECT_PATH"
- echo "$PROJECT_PATH/$PROJECT_NAME.uplugin"
- echo "$ENGINE_UAT_PATH"
- echo "$ENGINE_UAT_PATH_UE5_3"
- echo "$ENGINE_UAT_PATH_UE5_2"
- echo "Working dir"
- pwd

Expand All @@ -116,25 +106,13 @@ build:build-project:

- echo "Unreal 5.3 build complete."


- $UE5_PACKAGE_PATH_2 = "$PROJECT_PATH/$PROJECT_NAME" + "_ue5_2"
- echo "$UE5_PACKAGE_PATH_2"

- $process = Start-Process -Wait -PassThru -NoNewWindow -FilePath "$ENGINE_UAT_PATH_UE5_2" -ArgumentList "BuildPlugin -Plugin=$PROJECT_PATH/$PROJECT_NAME.uplugin -Package=$UE5_PACKAGE_PATH_2 -CreateSubFolder -VS2019 -TargetPlatforms=Win64+Mac -Rocket >> ./$PROJECT_NAME.log"
- echo $process.ExitCode
- if (-not ($process.ExitCode -eq 0)) { exit $process.ExitCode }

- echo "Unreal 5.2 build complete."


after_script:
# Get the project/app version from the uplugin file
# this holds the plugin version
- $UNREAL_PLUGIN_FILE = "$PROJECT_PATH/$PROJECT_NAME.uplugin"
- $BUILD_LOCATION = "$PROJECT_PATH/$PROJECT_NAME"
- $BUILD_LOCATION_UE5_3 = "$PROJECT_PATH/$PROJECT_NAME" + "_ue5_3"
- $BUILD_LOCATION_UE5_2 = "$PROJECT_PATH/$PROJECT_NAME" + "_ue5_2"


- $VERSION = Get-Content $UNREAL_PLUGIN_FILE | Where-Object {$_ -like '*VersionName*'}
- $VERSIONTRUNC = $VERSION.Replace('VersionName','')
Expand All @@ -150,45 +128,35 @@ build:build-project:
- $BUILD_FULL_VERSION = $VERSIONTRUNC
- $BUILD_PATH = "./build/$PROJECT_NAME-$BUILD_FULL_VERSION/"
- $BUILD_PATH_UE5_3 = "./build/$PROJECT_NAME" + "_ue5_3" +"-$BUILD_FULL_VERSION/"
- $BUILD_PATH_UE5_2 = "./build/$PROJECT_NAME" + "_ue5_2" +"-$BUILD_FULL_VERSION/"

- mkdir "$BUILD_PATH"
- mkdir "$BUILD_PATH_UE5_3"
- mkdir "$BUILD_PATH_UE5_2"

- echo "$BUILD_PATH"
- echo "$BUILD_LOCATION"

- echo "$BUILD_PATH_UE5_3"
- echo "$BUILD_LOCATION_UE5_3"

- echo "$BUILD_PATH_UE5_2"
- echo "$BUILD_LOCATION_UE5_2"


- mv "$BUILD_LOCATION/*" "$BUILD_PATH"
- mv "$BUILD_LOCATION_UE5_3/*" "$BUILD_PATH_UE5_3"
- mv "$BUILD_LOCATION_UE5_2/*" "$BUILD_PATH_UE5_2"

# pdbs
- Remove-Item "$BUILD_PATH/Binaries/Win64/*.pdb"
- Remove-Item "$BUILD_PATH_UE5_3/Binaries/Win64/*.pdb"
- Remove-Item "$BUILD_PATH_UE5_2/Binaries/Win64/*.pdb"

# Copy the packaged plugin for modifications for the Unreal Marketplace submission
- echo "copying and modifying for the marketplace"
- $BUILD_MARKET_PLACE_PATH = "./build/MarketPlace_4_27/$PROJECT_NAME"
- $BUILD_MARKET_PLACE_PATH_UE5_3 = "./build/MarketPlace_5_3/$PROJECT_NAME"
- $BUILD_MARKET_PLACE_PATH_UE5_2 = "./build/MarketPlace_5_2/$PROJECT_NAME"

- echo "$BUILD_MARKET_PLACE_PATH"
- echo "$BUILD_MARKET_PLACE_PATH_UE5_3"
- echo "$BUILD_MARKET_PLACE_PATH_UE5_2"


- mkdir "$BUILD_MARKET_PLACE_PATH"
- mkdir "$BUILD_MARKET_PLACE_PATH_UE5_3"
- mkdir "$BUILD_MARKET_PLACE_PATH_UE5_2"

# UE4 contents
- Copy-Item "$BUILD_PATH*" -Destination "$BUILD_MARKET_PLACE_PATH" -Recurse
Expand Down Expand Up @@ -230,42 +198,16 @@ build:build-project:
## zip it
- Compress-Archive -Path "$BUILD_MARKET_PLACE_PATH_UE5_3" -DestinationPath "$BUILD_MARKET_PLACE_PATH_UE5_3.zip"



# UE5_2 contents
- Copy-Item "$BUILD_PATH_UE5_2*" -Destination "$BUILD_MARKET_PLACE_PATH_UE5_2" -Recurse
# Copy the FilterPlugin.ini
- echo "$PROJECT_PATH/Config/FilterPlugin.ini"
- Copy-Item "$PROJECT_PATH/Config/FilterPlugin.ini" -Destination "$BUILD_MARKET_PLACE_PATH_UE5_2/Config"
# Clean the binaries folder
# pdbs
- Remove-Item "$BUILD_MARKET_PLACE_PATH_UE5_2/Binaries/Win64/*.pdb"
# modules
- Remove-Item "$BUILD_MARKET_PLACE_PATH_UE5_2/Binaries/Win64/UnrealEditor.modules"
# dlls
- Remove-Item "$BUILD_MARKET_PLACE_PATH_UE5_2/Binaries/Win64/UnrealEditor-BodyState.dll"
- Remove-Item "$BUILD_MARKET_PLACE_PATH_UE5_2/Binaries/Win64/UnrealEditor-UltraleapTracking.dll"
- Remove-Item "$BUILD_MARKET_PLACE_PATH_UE5_2/Binaries/Win64/UnrealEditor-UltraleapTrackingEditor.dll"
# intermediate folder
- Remove-Item "$BUILD_MARKET_PLACE_PATH_UE5_2/Intermediate" -Recurse

# zip it
- Compress-Archive -Path "$BUILD_MARKET_PLACE_PATH_UE5_2" -DestinationPath "$BUILD_MARKET_PLACE_PATH_UE5_2.zip"



# repare github zips with bins file
- $GITHUB_PATH_UE4_27 = "./github/$PROJECT_NAME" + "_ue4_27"
- $GITHUB_PATH_UE5_3 = "./github/$PROJECT_NAME" + "_ue5_3"
- $GITHUB_PATH_UE5_2 = "./github/$PROJECT_NAME" + "_ue5_2"

- mkdir "$GITHUB_PATH_UE4_27"
- mkdir "$GITHUB_PATH_UE5_3"
- mkdir "$GITHUB_PATH_UE5_2"

- Compress-Archive -Path "$BUILD_PATH" -DestinationPath "${GITHUB_PATH_UE4_27}/${PROJECT_NAME}_ue4_27.zip"
- Compress-Archive -Path "$BUILD_PATH_UE5_3" -DestinationPath "${GITHUB_PATH_UE5_3}/${PROJECT_NAME}_ue5_3.zip"
- Compress-Archive -Path "$BUILD_PATH_UE5_2" -DestinationPath "${GITHUB_PATH_UE5_2}/${PROJECT_NAME}_ue5_2.zip"


artifacts:
Expand All @@ -275,12 +217,10 @@ build:build-project:
- "./$PROJECT_NAME.log"
- "./build/MarketPlace_4_27/${PROJECT_NAME}.zip"
- "./build/MarketPlace_5_3/${PROJECT_NAME}.zip"
- "./build/MarketPlace_5_2/${PROJECT_NAME}.zip"

# these artifiacts are for github
- "./github/${PROJECT_NAME}_ue4_27/${PROJECT_NAME}_ue4_27.zip"
- "./github/${PROJECT_NAME}_ue5_3/${PROJECT_NAME}_ue5_3.zip"
- "./github/${PROJECT_NAME}_ue5_2/${PROJECT_NAME}_ue5_2.zip"

when: always
expire_in: 2 weeks
Expand Down Expand Up @@ -331,7 +271,7 @@ deploy:upload-to-aws-s3:

- |
for VERSION in "4_27" "5_2" "5_3"; do
for VERSION in "4_27" "5_3"; do
export ZIP_OUTPUT_NAME="${ZIP_NAME}_${VERSION}_$(cat /dev/urandom | base64 | tr -dc '0-9a-zA-Z' | head -c12).zip";
mv "${BUILD_DIR}/MarketPlace_${VERSION}/${ZIP_NAME}.zip" "${ZIP_OUTPUT_NAME}"
Expand Down

0 comments on commit 5f179c8

Please sign in to comment.