Fix subtractive drag logic #77
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: [push, pull_request] | |
| env: | |
| DOTNET_NOLOGO: true | |
| DOTNET_CLI_TELEMETRY_OPTOUT: false | |
| jobs: | |
| # Tests on Linux | |
| tests-linux: | |
| name: Tests (Linux) | |
| runs-on: "ubuntu-24.04" | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Print .NET info | |
| run: | | |
| dotnet --info | |
| dotnet workload --info | |
| - name: Checkout LFS | |
| run: | | |
| git lfs version | |
| git lfs pull | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install libx11-dev libxcursor-dev libxinerama-dev build-essential gettext libtool libtool-bin libpulse-dev libasound2-dev libjack-dev portaudio19-dev | |
| - name: Build | |
| run: | | |
| ./GenerateProjectFiles.sh -vs2022 -log -verbose -printSDKs -dotnet=8 | |
| ./Development/Scripts/Linux/CallBuildTool.sh -build -log -dotnet=8 -arch=x64 -platform=Linux -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 | |
| dotnet msbuild Source/Tools/Flax.Build.Tests/Flax.Build.Tests.csproj /m /t:Restore,Build /p:Configuration=Debug /p:Platform=AnyCPU /nologo | |
| - name: Test | |
| run: | | |
| ${GITHUB_WORKSPACE}/Binaries/Editor/Linux/Development/FlaxTests | |
| dotnet test -f net8.0 Binaries/Tests/Flax.Build.Tests.dll | |
| cp Binaries/Editor/Linux/Development/FlaxEngine.CSharp.dll Binaries/Tests | |
| cp Binaries/Editor/Linux/Development/FlaxEngine.CSharp.runtimeconfig.json Binaries/Tests | |
| cp Binaries/Editor/Linux/Development/Newtonsoft.Json.dll Binaries/Tests | |
| dotnet test -f net8.0 Binaries/Tests/FlaxEngine.CSharp.dll | |
| - name: Test UseLargeWorlds | |
| run: | | |
| ./Development/Scripts/Linux/CallBuildTool.sh -build -log -dotnet=8 -arch=x64 -platform=Linux -configuration=Development -buildtargets=FlaxTestsTarget -UseLargeWorlds=true | |
| ${GITHUB_WORKSPACE}/Binaries/Editor/Linux/Development/FlaxTests | |
| # Tests on Windows | |
| tests-windows: | |
| name: Tests (Windows) | |
| runs-on: "windows-2022" | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Print .NET info | |
| run: | | |
| dotnet --info | |
| dotnet workload --info | |
| - name: Checkout LFS | |
| run: | | |
| git lfs version | |
| git lfs pull | |
| - name: Build | |
| run: | | |
| .\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 | |
| - name: Test | |
| shell: pwsh | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| .\Binaries\Editor\Win64\Development\FlaxTests.exe | |
| if(!$?) { Write-Host "Tests failed with exit code $LastExitCode" -ForegroundColor Red; Exit $LastExitCode } | |
| dotnet test -f net8.0 Binaries\Tests\Flax.Build.Tests.dll | |
| xcopy /y Binaries\Editor\Win64\Development\FlaxEngine.CSharp.dll Binaries\Tests | |
| xcopy /y Binaries\Editor\Win64\Development\FlaxEngine.CSharp.runtimeconfig.json Binaries\Tests | |
| xcopy /y Binaries\Editor\Win64\Development\Newtonsoft.Json.dll Binaries\Tests | |
| dotnet test -f net8.0 Binaries\Tests\FlaxEngine.CSharp.dll |