From ef1223ab9f559a5c3fb6ce3e9fb6f507b7184436 Mon Sep 17 00:00:00 2001 From: Otto Seiskari Date: Sun, 2 Jun 2024 14:54:00 +0300 Subject: [PATCH] Python CI build (v1) --- .github/workflows/build.yml | 16 +++++++++++++--- build_and_test_python_library.sh | 2 -- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a0a0fc..c17d47d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file diff --git a/build_and_test_python_library.sh b/build_and_test_python_library.sh index c5641a6..027b14a 100755 --- a/build_and_test_python_library.sh +++ b/build_and_test_python_library.sh @@ -16,7 +16,6 @@ set -eux -source venv/bin/activate rm -rf dist rm -rf python/target @@ -27,7 +26,6 @@ make -j8 cd ../.. python python/setup.py bdist_wheel -deactivate cd python/target python -m venv venv_test