try to get rid of whole subnet in offline #10
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 Windows (amd64) | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "v*" | |
| release: | |
| types: [published] | |
| jobs: | |
| build-windows-amd64: | |
| runs-on: windows-2022 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Flutter pub get | |
| run: flutter pub get | |
| - name: Build Windows release (amd64) | |
| run: flutter build windows --release | |
| - name: Package build output | |
| shell: pwsh | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| $outDir = "build\windows\artifacts" | |
| New-Item -ItemType Directory -Force -Path $outDir | Out-Null | |
| $releaseDir = Get-ChildItem -Path "build\windows" -Recurse -Directory | | |
| Where-Object { Test-Path (Join-Path $_.FullName "MultiScan.exe") } | | |
| Select-Object -First 1 | |
| if (-not $releaseDir) { | |
| throw "Could not locate Windows release folder containing MultiScan.exe under build\windows." | |
| } | |
| $zipPath = Join-Path $outDir "multiscan-windows-amd64.zip" | |
| if (Test-Path $zipPath) { | |
| Remove-Item $zipPath -Force | |
| } | |
| Compress-Archive -Path (Join-Path $releaseDir.FullName "*") -DestinationPath $zipPath | |
| Write-Host "Created $zipPath" | |
| - name: Upload Windows artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: multiscan-windows-amd64 | |
| path: build/windows/artifacts/multiscan-windows-amd64.zip | |
| if-no-files-found: error |