From 5745a614940f28448db203fad883bc8ee421b17a Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 22 Nov 2023 14:57:58 +0000 Subject: [PATCH] feat: use conda environment for cibuildwheel --- .github/workflows/cd.yaml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index b11da8d5..2457af21 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -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 }}