Skip to content

Commit

Permalink
Add Python package build for multiple Python versions (Linux only)
Browse files Browse the repository at this point in the history
  • Loading branch information
oseiskar committed Jun 2, 2024
1 parent 4407443 commit 5b0d4c7
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,33 @@ jobs:
- name: Install build dependencies
run: |
sudo apt-get install python3 python3-pip
pip install pybind11
pip install pybind11 wheel
- name: Build Python
run: ./build_and_test_python_library.sh
run: ./build_and_test_python_library.sh
build_binary_packages:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install build dependencies
run: |
sudo apt-get install python3 python3-pip
pip install pybind11 wheel
- name: Build Python
run: ./build_and_test_python_library.sh
- uses: actions/upload-artifact@v2
with:
name: wheel-${{ matrix.python-version }}
retention-days: 5
path: |
dist/IsoOctree*.whl

0 comments on commit 5b0d4c7

Please sign in to comment.