From 0c1da8e13be727b5bac4774dcdd47f6061ea2fde Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 25 Mar 2026 15:02:58 +0100 Subject: [PATCH] Attempt to fix Github Action issues --- .github/workflows/build_android.yml | 9 +++++---- .github/workflows/build_windows.yml | 16 +++++++++------- .github/workflows/cd.yml | 16 +++++++++------- .github/workflows/tests.yml | 9 +++++---- Source/Tools/Flax.Build/global.json | 4 ++-- global.json | 4 ++-- 6 files changed, 32 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build_android.yml b/.github/workflows/build_android.yml index 931abd8a7..a899bb933 100644 --- a/.github/workflows/build_android.yml +++ b/.github/workflows/build_android.yml @@ -4,7 +4,7 @@ on: [push, pull_request] env: DOTNET_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: false - DOTNET_ROLL_FORWARD: 'LatestMinor' + DOTNET_ROLL_FORWARD: 'disable' jobs: @@ -20,7 +20,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.0.x + dotnet-version: 8.0.419 - name: Setup .NET Workload run: | dotnet workload install android @@ -34,6 +34,7 @@ jobs: git lfs pull - 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" + PowerShell "(Get-Content global.json).Replace('latestMajor', 'disable') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/global.json).Replace('latestMajor', 'disable') | Set-Content Source/Tools/Flax.Build/global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'Disable') | 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 c64867f42..ab4f60704 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -4,7 +4,7 @@ on: [push, pull_request] env: DOTNET_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: false - DOTNET_ROLL_FORWARD: 'LatestMinor' + DOTNET_ROLL_FORWARD: 'disable' jobs: @@ -20,7 +20,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.0.x + dotnet-version: 8.0.419 - name: Print .NET info run: | dotnet --info @@ -31,8 +31,9 @@ jobs: git lfs pull - 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" + PowerShell "(Get-Content global.json).Replace('latestMajor', 'disable') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/global.json).Replace('latestMajor', 'disable') | Set-Content Source/Tools/Flax.Build/global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'Disable') | 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 @@ -47,7 +48,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.0.x + dotnet-version: 8.0.419 - name: Print .NET info run: | dotnet --info @@ -58,6 +59,7 @@ jobs: git lfs pull - 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" + PowerShell "(Get-Content global.json).Replace('latestMajor', 'disable') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/global.json).Replace('latestMajor', 'disable') | Set-Content Source/Tools/Flax.Build/global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'Disable') | 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 fd7da6d1b..ba5a8aff6 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -7,7 +7,7 @@ on: env: DOTNET_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: false - DOTNET_ROLL_FORWARD: 'LatestMinor' + DOTNET_ROLL_FORWARD: 'disable' GIT_LFS_PULL_OPTIONS: '-c lfs.concurrenttransfers=1 -c lfs.transfer.maxretries=2 -c http.version="HTTP/1.1" -c lfs.activitytimeout=60' jobs: @@ -28,15 +28,16 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.0.x + dotnet-version: 8.0.419 - name: Print .NET info run: | dotnet --info dotnet workload --info - 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" + PowerShell "(Get-Content global.json).Replace('latestMajor', 'disable') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/global.json).Replace('latestMajor', 'disable') | Set-Content Source/Tools/Flax.Build/global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'Disable') | 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 @@ -63,15 +64,16 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.0.x + dotnet-version: 8.0.419 - name: Print .NET info run: | dotnet --info dotnet workload --info - 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" + PowerShell "(Get-Content global.json).Replace('latestMajor', 'disable') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/global.json).Replace('latestMajor', 'disable') | Set-Content Source/Tools/Flax.Build/global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'Disable') | 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 7ca4e25a5..8e62c5551 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,7 +4,7 @@ on: [push, pull_request] env: DOTNET_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: false - DOTNET_ROLL_FORWARD: 'LatestMinor' + DOTNET_ROLL_FORWARD: 'disable' jobs: @@ -60,7 +60,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.0.x + dotnet-version: 8.0.419 - name: Print .NET info run: | dotnet --info @@ -71,8 +71,9 @@ jobs: git lfs pull - 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" + PowerShell "(Get-Content global.json).Replace('latestMajor', 'disable') | Set-Content global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/global.json).Replace('latestMajor', 'disable') | Set-Content Source/Tools/Flax.Build/global.json" + PowerShell "(Get-Content Source/Tools/Flax.Build/Flax.Build.csproj).Replace('LatestMajor', 'Disable') | 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 diff --git a/Source/Tools/Flax.Build/global.json b/Source/Tools/Flax.Build/global.json index 9498eeef6..51ccb9126 100644 --- a/Source/Tools/Flax.Build/global.json +++ b/Source/Tools/Flax.Build/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.0", + "version": "8.0.419", "rollForward": "latestMajor" } -} \ No newline at end of file +} diff --git a/global.json b/global.json index 7da276347..51ccb9126 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.100", + "version": "8.0.419", "rollForward": "latestMajor" } -} \ No newline at end of file +}