Skip to content

Commit

Permalink
feat: use conda environment for cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Nov 22, 2023
1 parent b7cd658 commit 5745a61
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,30 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: "3.10"

- name: Install libraries
run: |
conda install -c conda-forge boost-cpp
conda install py-boost
conda install -c conda-forge eigen==3.4.0
conda install -c conda-forge geographiclib-cpp==1.52
conda install -c conda-forge pugixml==1.13
conda install -c conda-forge gtest==1.14.0
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.2

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.machine.platform }}

Expand Down

0 comments on commit 5745a61

Please sign in to comment.