Improve Windows integration and taskbar experience (#2) #18
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, main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-test-package: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| global-json-file: global.json | |
| - name: Restore | |
| run: dotnet restore .\CodexUsageWidget.slnx | |
| - name: Build | |
| run: dotnet build .\CodexUsageWidget.slnx -c Release --no-restore | |
| - name: Test | |
| run: dotnet test .\CodexUsageWidget.slnx -c Release --no-build | |
| - name: Publish portable Windows build | |
| run: >- | |
| dotnet publish .\src\CodexUsageWidget\CodexUsageWidget.csproj | |
| -c Release | |
| -r win-x64 | |
| --self-contained true | |
| -p:PublishSingleFile=true | |
| -p:IncludeNativeLibrariesForSelfExtract=true | |
| -p:PublishTrimmed=false | |
| -p:DebugType=None | |
| -p:DebugSymbols=false | |
| -o .\artifacts\ci\win-x64 | |
| - name: Upload portable build | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: codex-usage-widget-win-x64 | |
| path: .\artifacts\ci\win-x64\ | |
| if-no-files-found: error |