diff --git a/.github/workflows/build_android.yml b/.github/workflows/build_android.yml index a0b78225b..931abd8a7 100644 --- a/.github/workflows/build_android.yml +++ b/.github/workflows/build_android.yml @@ -32,12 +32,8 @@ jobs: run: | git lfs version git lfs pull - - name: Configure .NET version - uses: MathieuSoysal/replace-string-in-file@v1.1.0 - with: - old-string: "LatestMajor" - new-string: "LatestMinor" - file: Source/Tools/Flax.Build/Flax.Build.csproj - name: Build run: | + PowerShell "(Get-Content global.json).Replace('latestMajor', 'latestMinor') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'LatestMinor') | Set-Content Source/Tools/Flax.Build/Flax.Build.csproj" .\Development\Scripts\Windows\CallBuildTool.bat -build -log -printSDKs -dotnet=8 -arch=ARM64 -platform=Android -configuration=Release -buildtargets=FlaxGame diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml index f66c7d2ec..c64867f42 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -29,14 +29,10 @@ jobs: run: | git lfs version git lfs pull - - name: Configure .NET version - uses: MathieuSoysal/replace-string-in-file@v1.1.0 - with: - old-string: "LatestMajor" - new-string: "LatestMinor" - file: Source/Tools/Flax.Build/Flax.Build.csproj - name: Build run: | + PowerShell "(Get-Content global.json).Replace('latestMajor', 'latestMinor') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'LatestMinor') | Set-Content Source/Tools/Flax.Build/Flax.Build.csproj" .\Development\Scripts\Windows\CallBuildTool.bat -build -log -printSDKs -dotnet=8 -arch=x64 -platform=Windows -configuration=Development -buildtargets=FlaxEditor # Game @@ -60,12 +56,8 @@ jobs: run: | git lfs version git lfs pull - - name: Configure .NET version - uses: MathieuSoysal/replace-string-in-file@v1.1.0 - with: - old-string: "LatestMajor" - new-string: "LatestMinor" - file: Source/Tools/Flax.Build/Flax.Build.csproj - name: Build run: | + PowerShell "(Get-Content global.json).Replace('latestMajor', 'latestMinor') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'LatestMinor') | Set-Content Source/Tools/Flax.Build/Flax.Build.csproj" .\Development\Scripts\Windows\CallBuildTool.bat -build -log -printSDKs -dotnet=8 -arch=x64 -platform=Windows -configuration=Release -buildtargets=FlaxGame diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index dd1d73c5f..fd7da6d1b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -33,14 +33,10 @@ jobs: run: | dotnet --info dotnet workload --info - - name: Configure .NET version - uses: MathieuSoysal/replace-string-in-file@v1.1.0 - with: - old-string: "LatestMajor" - new-string: "LatestMinor" - file: Source/Tools/Flax.Build/Flax.Build.csproj - name: Build run: | + PowerShell "(Get-Content global.json).Replace('latestMajor', 'latestMinor') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'LatestMinor') | Set-Content Source/Tools/Flax.Build/Flax.Build.csproj" .\PackageEditor.bat -arch=x64 -platform=Windows -deployOutput=Output -dotnet=8 - name: Upload uses: actions/upload-artifact@v4 @@ -72,14 +68,10 @@ jobs: run: | dotnet --info dotnet workload --info - - name: Configure .NET version - uses: MathieuSoysal/replace-string-in-file@v1.1.0 - with: - old-string: "LatestMajor" - new-string: "LatestMinor" - file: Source/Tools/Flax.Build/Flax.Build.csproj - name: Build run: | + PowerShell "(Get-Content global.json).Replace('latestMajor', 'latestMinor') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'LatestMinor') | Set-Content Source/Tools/Flax.Build/Flax.Build.csproj" .\PackagePlatforms.bat -arch=x64 -platform=Windows -deployOutput=Output -dotnet=8 - name: Upload uses: actions/upload-artifact@v4 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 62e306b4f..7ca4e25a5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -69,14 +69,10 @@ jobs: run: | git lfs version git lfs pull - - name: Configure .NET version - uses: MathieuSoysal/replace-string-in-file@v1.1.0 - with: - old-string: "LatestMajor" - new-string: "LatestMinor" - file: Source/Tools/Flax.Build/Flax.Build.csproj - name: Build run: | + PowerShell "(Get-Content global.json).Replace('latestMajor', 'latestMinor') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'LatestMinor') | Set-Content Source/Tools/Flax.Build/Flax.Build.csproj" .\GenerateProjectFiles.bat -vs2022 -log -verbose -printSDKs -dotnet=8 .\Development\Scripts\Windows\CallBuildTool.bat -build -log -dotnet=8 -arch=x64 -platform=Windows -configuration=Development -buildtargets=FlaxTestsTarget dotnet msbuild Source\Tools\Flax.Build.Tests\Flax.Build.Tests.csproj /m /t:Restore,Build /p:Configuration=Debug /p:Platform=AnyCPU /nologo