Refactor xdelta to C module #240
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 binaries | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 3 | |
| matrix: | |
| os: [ubuntu-24.04, ubuntu-24.04-arm, macos-13, macos-15, windows-2025] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: 'true' | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.9" | |
| - name: Install pyinstaller and dependencies | |
| run: pip3 install --upgrade pyinstaller requests | |
| - name: Build C module | |
| run: pip3 install -e . | |
| - name: Set strip on Linux and Mac | |
| id: strip | |
| run: echo "option=--strip" >> $GITHUB_OUTPUT | |
| if: runner.os != 'Windows' | |
| - name: Build | |
| run: pyinstaller | |
| --onefile | |
| --name gogdl | |
| ${{ steps.strip.outputs.option }} | |
| gogdl/cli.py | |
| env: | |
| PYTHONOPTIMIZE: 1 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: gogdl-${{ matrix.os }} | |
| path: dist/* |