From 1c680615be4d9de2a2ada72e907c900c892a1eaf Mon Sep 17 00:00:00 2001 From: Mark Stephenson Date: Mon, 23 Sep 2024 13:07:09 -0600 Subject: [PATCH] test --- .github/workflows/pull-request.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index a999c62985..48330fe69a 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -297,3 +297,37 @@ jobs: pytest -n auto -m "not ciSkip" if: ${{ always() }} + + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + python-version: [3.9] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install cibuildwheel + run: python -m pip install cibuildwheel==2.21.1 + - name: "Install swig and cmake" + run: sudo apt-get update && sudo apt-get install build-essential swig cmake -y + - name: "Install python packages" + run: sudo apt-get install python3-setuptools python3-tk + + - name: Build wheels + run: python -m cibuildwheel --output-dir wheelhouse + # to supply options, put them in 'env', like: + # env: + # CIBW_SOME_OPTION: value + + - uses: actions/upload-artifact@v4 + with: + name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} + path: ./wheelhouse/*.whl + \ No newline at end of file