feat: improve CLI build #17
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: Test CLI Build | |
| on: | |
| push: | |
| branches: ['main'] | |
| paths: | |
| - 'src/cli/**' | |
| - '.github/workflows/**' | |
| pull_request: | |
| branches: ['main'] | |
| paths: | |
| - 'src/cli/**' | |
| - '.github/workflows/**' | |
| workflow_dispatch: | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./src/cli | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install deps with uv | |
| run: uv sync --frozen | |
| - name: Build | |
| run: uv run poe nuitka-linux | |
| - name: Upload Linux CLI artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cli-linux | |
| path: app.bin | |
| build-windows: | |
| runs-on: windows-latest | |
| defaults: | |
| run: | |
| working-directory: ./src/cli | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install deps with uv | |
| run: uv sync --frozen | |
| - name: Build (Windows) via poe | |
| run: uv run poe nuitka | |
| - name: Upload Windows CLI artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cli-windows | |
| path: app.exe |