Feature: creating wheels using GHA #36
This file contains 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 Wheels | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build_wheels: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Initial Setup | |
run: | | |
sudo bash ./scripts/setup_ubuntu.sh | |
sudo bash ./scripts/build_wheel.sh | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: drake_extension-0.0.1-cp310-cp310-linux_x86_64.whl | |
path: dist/*.whl | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: install_dependencies | |
path: ./scripts/setup_ubuntu | |
test_wheels: | |
needs: build_wheels | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: drake_extension-0.0.1-cp310-cp310-linux_x86_64.whl | |
- uses: actions/download-artifact@v4 | |
with: | |
name: install_dependencies | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: Install and test | |
run: | | |
sudo bash setup_ubuntu | |
pip3 install drake | |
pip3 install ./drake_extension-0.0.1-cp310-cp310-linux_x86_64.whl | |
python3 -c 'import drake_extension' |