From 23310efe93ca0bea00da0667d341deb23c0e4fb3 Mon Sep 17 00:00:00 2001 From: dhruvch12 Date: Wed, 25 Mar 2026 17:42:38 +0530 Subject: [PATCH 1/2] prototype: add initial cibuildwheel github action --- .github/workflows/build_wheels.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build_wheels.yml diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml new file mode 100644 index 00000000..16bcfa45 --- /dev/null +++ b/.github/workflows/build_wheels.yml @@ -0,0 +1,23 @@ +name: GBasis Build Wheels Prototype + +on: + workflow_dispatch: # This allows you to trigger the build manually from GitHub + +jobs: + build_wheels: + name: Build wheels on ubuntu-latest + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Build wheels + uses: pypa/cibuildwheel@v2.22.0 + env: + # For our prototype, we will just target Python 3.11 on Linux + CIBW_BUILD: cp311-manylinux_x86_64 + + - uses: actions/upload-artifact@v4 + with: + name: gbasis-wheels + path: ./wheelhouse/*.whl \ No newline at end of file From bf40a899e5831259fa8f3b45d6f45fd96dc5b3a7 Mon Sep 17 00:00:00 2001 From: dhruvch12 Date: Wed, 25 Mar 2026 23:47:14 +0530 Subject: [PATCH 2/2] prototype: inject libcint cmake compilation --- .github/workflows/build_wheels.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 16bcfa45..1d40d462 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -1,7 +1,7 @@ name: GBasis Build Wheels Prototype on: - workflow_dispatch: # This allows you to trigger the build manually from GitHub + workflow_dispatch: jobs: build_wheels: @@ -14,8 +14,15 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.22.0 env: - # For our prototype, we will just target Python 3.11 on Linux CIBW_BUILD: cp311-manylinux_x86_64 + CIBW_BUILD_VERBOSITY: 1 + CIBW_BEFORE_ALL: > + yum install -y cmake git && + git clone https://github.com/sunqm/libcint.git && + cd libcint && + mkdir build && cd build && + cmake -DCMAKE_INSTALL_PREFIX=/usr .. && + make && make install - uses: actions/upload-artifact@v4 with: