feat(portable): add Windows ARM64 support to launcher and publish scr… #266
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| - uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2 | |
| - name: Restore | |
| run: msbuild source\BulkCrapUninstaller.sln /t:Restore /p:Configuration=Release /p:Platform="Any CPU" /verbosity:minimal | |
| - name: Build | |
| run: > | |
| msbuild source\BulkCrapUninstaller.sln /t:Publish /p:Configuration=Release /p:Platform="Any CPU" /verbosity:minimal | |
| /p:filealignment=512 /p:DeployOnBuild=true /p:PublishSingleFile=False /p:SelfContained=False /p:PublishReadyToRun=false /p:PublishTrimmed=False | |
| /p:PublishProtocol=FileSystem /p:PublishDir="${{ github.workspace }}\bin\publish" | |
| - name: Build launcher | |
| run: > | |
| msbuild "source\BCU-launcher\BCU-launcher.vcxproj" /t:Build /p:Configuration=Release /p:Platform=Win32 /m /verbosity:minimal | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: ${{ github.event.repository.name }}_${{ github.sha }} | |
| path: bin\publish | |
| - name: Test | |
| run: > | |
| dotnet test source\BulkCrapUninstallerTests\BulkCrapUninstallerTests.csproj | |
| --configuration Release | |
| --no-restore | |
| --logger "trx;LogFileName=BulkCrapUninstallerTests.trx" | |
| --results-directory "${{ github.workspace }}\TestResults" | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: windows-test-results_${{ github.sha }} | |
| path: TestResults\*.trx | |
| if-no-files-found: warn |