feat: Capacium v0.11.0 — Phase 2 Redesign (#8) #56
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 Standalone Binaries | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build: | |
| name: Build on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyinstaller | |
| pip install .[signing,yaml] | |
| - name: Build with PyInstaller | |
| run: | | |
| pyinstaller --name cap --onefile src/capacium/cli.py | |
| - name: Rename and prepare artifacts (Unix) | |
| if: matrix.os != 'windows-latest' | |
| run: | | |
| mv dist/cap dist/cap-${{ runner.os }}-${{ runner.arch }} | |
| tar -czvf cap-${{ runner.os }}-${{ runner.arch }}.tar.gz -C dist cap-${{ runner.os }}-${{ runner.arch }} | |
| - name: Rename and prepare artifacts (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| Rename-Item -Path "dist\cap.exe" -NewName "cap-${{ runner.os }}-${{ runner.arch }}.exe" | |
| Compress-Archive -Path "dist\cap-${{ runner.os }}-${{ runner.arch }}.exe" -DestinationPath "cap-${{ runner.os }}-${{ runner.arch }}.zip" | |
| - name: Release Packages | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| cap-*.tar.gz | |
| cap-*.zip |