|
| 1 | +name: build |
| 2 | +on: |
| 3 | + push: |
| 4 | + tags: |
| 5 | + - 'v[0-9]*' |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +jobs: |
| 9 | + build: |
| 10 | + |
| 11 | + runs-on: ubuntu-latest |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13"] |
| 15 | + |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v4 |
| 18 | + - name: Set up Python ${{ matrix.python-version }} |
| 19 | + uses: actions/setup-python@v5 |
| 20 | + with: |
| 21 | + python-version: ${{ matrix.python-version }} |
| 22 | + steps: |
| 23 | + - uses: actions/checkout@v3 |
| 24 | + - run: python3 scripts/generate_meson.py ./src/dbzero/ core |
| 25 | + - run: python3 scripts/generate_meson_tests.py tests/ |
| 26 | + - run: git config --global user.email "you@example.com" |
| 27 | + - run: git config --global user.name "Your Name" |
| 28 | + - run: python3 --version |
| 29 | + - run: g++ --version |
| 30 | + - run: rm .gitignore |
| 31 | + - run: git add . && git commit -m "Update meson files" |
| 32 | + - run: pip install build |
| 33 | + - run: python3 -m build |
| 34 | + env: |
| 35 | + CIBW_SKIP: pp* cp36-* *-musllinux* |
| 36 | + CIBW_ARCHS_MACOS: x86_64 arm64 |
| 37 | + CIBW_ARCHS_LINUX: x86_64 aarch64 |
| 38 | + CIBW_ARCHS_WINDOWS: ${{ matrix.architecture }} |
| 39 | + - uses: actions/upload-artifact@v3 |
| 40 | + with: |
| 41 | + path: wheelhouse/*.whl |
| 42 | + |
| 43 | + sdist: |
| 44 | + runs-on: ubuntu-latest |
| 45 | + steps: |
| 46 | + - uses: actions/checkout@v3 |
| 47 | + - run: python3 scripts/generate_meson.py ./src/dbzero/ core |
| 48 | + - run: python3 scripts/generate_meson_tests.py tests/ |
| 49 | + - run: python -m pip install build meson |
| 50 | + - run: python -m build --sdist |
| 51 | + - uses: actions/upload-artifact@v3 |
| 52 | + with: |
| 53 | + path: dist/*.tar.gz |
0 commit comments