Skip to content

Commit

Permalink
Python CI build (v1)
Browse files Browse the repository at this point in the history
  • Loading branch information
oseiskar committed Jun 2, 2024
1 parent 8bbbefe commit ef1223a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cleanup working dir
run: rm -rf target example/target
- name: Build
- name: Build C++
run: ./build_library_and_example.sh
build_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- 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
2 changes: 0 additions & 2 deletions build_and_test_python_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

set -eux

source venv/bin/activate
rm -rf dist
rm -rf python/target

Expand All @@ -27,7 +26,6 @@ make -j8
cd ../..

python python/setup.py bdist_wheel
deactivate

cd python/target
python -m venv venv_test
Expand Down

0 comments on commit ef1223a

Please sign in to comment.