optimizations #4
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 "619 Log Tool" ` | |
| --icon "1024hat.png" ` | |
| --add-data "3840Wide.png;." ` | |
| --add-data "1024hat.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 "619 Log Tool" \ | |
| --icon "1024hat.png" \ | |
| --add-data "3840Wide.png:." \ | |
| --add-data "1024hat.png:." \ | |
| --add-data "Norwester.otf:." \ | |
| --add-data "OpenSans-Regular.ttf:." \ | |
| main.py | |
| - name: Upload Artifacts (Windows) | |
| if: matrix.os == 'windows-latest' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 619 Log Tool-Windows | |
| path: dist/*.exe | |
| - name: Upload Artifacts (macOS) | |
| if: matrix.os == 'macos-latest' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 619 Log Tool-macOS | |
| path: "dist/*.app" |