[MacOS] Implement SetForegroundWindowAndRestore using Osascript (#2693) #46
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: Building Master | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| setup: | |
| if: github.repository_owner == 'SubnauticaNitrox' | |
| runs-on: [self-hosted, linux] | |
| steps: | |
| - name: Checking out repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| build: | |
| needs: setup | |
| runs-on: [self-hosted, linux] | |
| strategy: | |
| matrix: | |
| configuration: [Debug, Release] | |
| runtime: [win-x64, linux-x64, linux-arm64] | |
| steps: | |
| - name: Build | |
| run: dotnet build Nitrox.Launcher/Nitrox.Launcher.csproj -c ${{ matrix.configuration }} -r ${{ matrix.runtime }} | |
| test: | |
| needs: build | |
| runs-on: [self-hosted, linux] | |
| steps: | |
| - name: Run Tests | |
| continue-on-error: true | |
| run: dotnet test Nitrox.Test/Nitrox.Test.csproj --logger trx --results-directory "test_results" | |
| - name: Upload Test Results | |
| uses: EnricoMi/publish-unit-test-result-action/linux@3a74b2957438d0b6e2e61d67b05318aa25c9e6c6 # v2.20.0 | |
| if: (!cancelled()) | |
| with: | |
| files: | | |
| test_results/*.trx |