bump: version 1.3.3 → 1.3.4 #11
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: windows-exe | |
| on: | |
| push: | |
| tags: ["v*", "*.*.*"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install osmsg + PyInstaller | |
| run: | | |
| uv venv | |
| uv pip install . pyinstaller | |
| - name: Build osmsg.exe | |
| run: uv run pyinstaller --clean --noconfirm packaging/pyinstaller/osmsg.spec | |
| - name: Verify the exe built | |
| run: | | |
| if (-not (Test-Path dist\osmsg.exe)) { throw "osmsg.exe not produced" } | |
| $size = (Get-Item dist\osmsg.exe).Length | |
| Write-Host "osmsg.exe size: $size bytes" | |
| if ($size -lt 10000000) { throw "osmsg.exe is implausibly small" } | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: osmsg-windows-x64 | |
| path: dist/osmsg.exe | |
| - name: Attach to release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/osmsg.exe |