From a8e2e09bc62e7ddc2b199d6f897db42988af0e3e Mon Sep 17 00:00:00 2001 From: Thomas-Otavio Peulen Date: Sun, 11 Feb 2024 22:03:18 +0100 Subject: [PATCH] Build wheels --- .../{conda-release.yml => release.yml} | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) rename .github/workflows/{conda-release.yml => release.yml} (70%) diff --git a/.github/workflows/conda-release.yml b/.github/workflows/release.yml similarity index 70% rename from .github/workflows/conda-release.yml rename to .github/workflows/release.yml index a2d33f79..76a5262f 100644 --- a/.github/workflows/conda-release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,5 @@ -name: Build and Upload Conda Packages +name: Build and Upload Packages on: # push: @@ -59,3 +59,29 @@ jobs: run: | anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload -u tpeulen --force conda-bld/**/*.tar.bz2 + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-13, macos-14] + + steps: + - uses: actions/checkout@v4 + + # Used to host cibuildwheel + - uses: actions/setup-python@v3 + + - name: Install cibuildwheel + run: python -m pip install cibuildwheel==2.16.5 + + - 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