name: Windows on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: strategy: matrix: configuration: [Release] runs-on: windows-latest env: Solution_Name: SwitchGiftDataManager.sln Configuration: ${{ matrix.configuration }} steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install .NET uses: actions/setup-dotnet@v4 with: dotnet-version: 9.0.x - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@v2 - name: Execute unit tests run: dotnet test - name: Restore and build the application run: | msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration msbuild $env:Solution_Name /property:Configuration=$env:Configuration - name: Upload WinForms build artifacts uses: actions/upload-artifact@v4 with: name: WindowsForm.GUI.App path: SwitchGiftDataManager.WinForm/bin - name: Upload Windows CommandLine build artifacts uses: actions/upload-artifact@v4 with: name: Windows.CommandLine.App path: SwitchGiftDataManager.CommandLine/bin