Add operator tooltip and properties screenshots #21
Workflow file for this run
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: Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main, dev] | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-test: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET 8.0 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore dependencies | |
| run: | | |
| dotnet restore src/PlanViewer.Core/PlanViewer.Core.csproj | |
| dotnet restore src/PlanViewer.App/PlanViewer.App.csproj | |
| dotnet restore src/PlanViewer.Cli/PlanViewer.Cli.csproj | |
| dotnet restore tests/PlanViewer.Core.Tests/PlanViewer.Core.Tests.csproj | |
| - name: Build all projects | |
| run: | | |
| dotnet build src/PlanViewer.Core/PlanViewer.Core.csproj -c Release --no-restore | |
| dotnet build src/PlanViewer.App/PlanViewer.App.csproj -c Release --no-restore | |
| dotnet build src/PlanViewer.Cli/PlanViewer.Cli.csproj -c Release --no-restore | |
| dotnet build tests/PlanViewer.Core.Tests/PlanViewer.Core.Tests.csproj -c Release --no-restore | |
| - name: Run tests | |
| run: dotnet test tests/PlanViewer.Core.Tests/PlanViewer.Core.Tests.csproj -c Release --no-build --verbosity normal | |
| - name: Publish App (all platforms) | |
| if: github.event_name == 'release' | |
| run: | | |
| dotnet publish src/PlanViewer.App/PlanViewer.App.csproj -c Release -r win-x64 --self-contained -o publish/win-x64 | |
| dotnet publish src/PlanViewer.App/PlanViewer.App.csproj -c Release -r linux-x64 --self-contained -o publish/linux-x64 | |
| dotnet publish src/PlanViewer.App/PlanViewer.App.csproj -c Release -r osx-x64 --self-contained -o publish/osx-x64 | |
| dotnet publish src/PlanViewer.App/PlanViewer.App.csproj -c Release -r osx-arm64 --self-contained -o publish/osx-arm64 | |
| - name: Package release artifacts | |
| if: github.event_name == 'release' | |
| shell: pwsh | |
| run: | | |
| New-Item -ItemType Directory -Force -Path releases | |
| $rids = @('win-x64', 'linux-x64', 'osx-x64', 'osx-arm64') | |
| foreach ($rid in $rids) { | |
| if (Test-Path 'README.md') { Copy-Item 'README.md' "publish/$rid/" } | |
| if (Test-Path 'LICENSE') { Copy-Item 'LICENSE' "publish/$rid/" } | |
| Compress-Archive -Path "publish/$rid/*" -DestinationPath "releases/PerformanceStudio-$rid.zip" -Force | |
| } | |
| - name: Generate checksums | |
| if: github.event_name == 'release' | |
| shell: pwsh | |
| run: | | |
| $checksums = Get-ChildItem releases/*.zip | ForEach-Object { | |
| $hash = (Get-FileHash $_.FullName -Algorithm SHA256).Hash.ToLower() | |
| "$hash $($_.Name)" | |
| } | |
| $checksums | Out-File -FilePath releases/SHA256SUMS.txt -Encoding utf8 | |
| Write-Host "Checksums:" | |
| $checksums | ForEach-Object { Write-Host $_ } | |
| - name: Upload release assets | |
| if: github.event_name == 'release' | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh release upload ${{ github.event.release.tag_name }} releases/*.zip releases/SHA256SUMS.txt --clobber |