From 4bcf729b7c270d7346c1824a6981aa0e64c5764b Mon Sep 17 00:00:00 2001 From: Paul Koch Date: Thu, 25 Jul 2024 10:14:55 -0700 Subject: [PATCH] add bdist to github actions --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 394276f8b..59d15589f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -161,3 +161,37 @@ jobs: with: name: sdist path: bld/sdist + + bdist: + runs-on: ubuntu-20.04 + needs: [bld, vis] + steps: + - name: Check out repo + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.9 + - name: Download libebm artifacts + uses: actions/download-artifact@v4 + with: + pattern: libebm_* + merge-multiple: true + path: python/interpret-core/interpret/root/bld/lib/ + - name: Download vis artifact + uses: actions/download-artifact@v4 + with: + name: vis + path: python/interpret-core/interpret/root/bld/lib/ + - name: Build bdist package + run: | + python -m pip install --upgrade pip setuptools wheel + cd python/interpret-core + python setup.py bdist_wheel -d ../../bld/bdist + cd ../interpret + python setup.py bdist_wheel -d ../../bld/bdist + - name: Publish bdist package + uses: actions/upload-artifact@v4 + with: + name: bdist + path: bld/bdist