ci(build): add ubuntu arm #14
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 | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| check: | |
| name: Build installers from python project | |
| strategy: | |
| matrix: | |
| os: ['windows-latest', 'ubuntu-latest', 'ubuntu-latest-arm', 'macos-latest'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.14 | |
| - name: Install uv and pyinstaller | |
| run: pip install uv pyinstaller | |
| - name: Generate requirements.txt | |
| run: uv export --no-dev --format requirements-txt > requirements.txt | |
| working-directory: ./lw_python | |
| - name: Install requirements | |
| run: pip install -r requirements.txt | |
| working-directory: ./lw_python | |
| - name: Build with pyinstaller | |
| run: pyinstaller main.py | |
| working-directory: ./lw_python | |
| - uses: actions/upload-artifact@v5 | |
| with: | |
| name: lw-python-${{ matrix.os }} | |
| include-hidden-files: true | |
| path: lw_python/dist/* | |