Add GitHub Actions workflow for building 619 Log Tool #1
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 619 Log Tool | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| name: Build for ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # Build for Windows and Mac (M-Series via macos-latest) | |
| os: [windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Build with PyInstaller (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| uv run pyinstaller --onefile --windowed ` | |
| --name "619LogTool-Win" ` | |
| --add-data "3840Wide.png;." ` | |
| --add-data "Norwester.otf;." ` | |
| --add-data "OpenSans-Regular.ttf;." ` | |
| main.py | |
| - name: Build with PyInstaller (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: | | |
| uv run pyinstaller --onefile --windowed \ | |
| --name "619LogTool-Mac" \ | |
| --add-data "3840Wide.png:." \ | |
| --add-data "Norwester.otf:." \ | |
| --add-data "OpenSans-Regular.ttf:." \ | |
| main.py | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 619LogTool-${{ matrix.os }} | |
| path: dist/* |