From 5ff03007c6e50dcea7fef44528ebbde8a9861645 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Wed, 25 Jan 2023 11:18:40 +0100 Subject: [PATCH] try using wheels on ubuntu --- .github/workflows/build-majestic.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-majestic.yml b/.github/workflows/build-majestic.yml index 80504766b..869dbc34d 100644 --- a/.github/workflows/build-majestic.yml +++ b/.github/workflows/build-majestic.yml @@ -70,17 +70,21 @@ jobs: sudo mv lib/* /usr/local/lib/ sudo mv include/* /usr/local/include/ - - name: Install bindings - working-directory: ./src/runtime/python + - name: Install cibuildwheel run: | - python setup.py build - sudo python setup.py install + python3 -m pip install git+https://github.com/joerick/cibuildwheel.git@main - - name: Run testsuite - working-directory: ./src/runtime/python + - name: Install and test bindings + env: + CIBW_TEST_REQUIRES: pytest + CIBW_TEST_COMMAND: "(cd {project}/src/runtime/python; pytest)" run: | - pip install pytest - pytest + python3 -m cibuildwheel src/runtime/python --output-dir wheelhouse + + - uses: actions/upload-artifact@master + with: + name: python-linux + path: ./wheelhouse # ubuntu-javascript: # name: JavaScript (Ubuntu) @@ -199,7 +203,7 @@ jobs: run: | python3 -m cibuildwheel src/runtime/python --output-dir wheelhouse - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@master with: name: python-macos path: ./wheelhouse