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 1549dd4
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,28 @@ jobs:
sudo apt-get install python3 python3-pip
pip install pybind11
- 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
- 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
- name: Build Python
run: ./build_and_test_python_library.sh
- uses: actions/upload-artifact@v2
with:
name: wheel-${{ matrix.python-version }}
path: |
dist/IsoOctree*.whl

0 comments on commit 1549dd4

Please sign in to comment.