Skip to content

build library and also Python wheels in CI #3

build library and also Python wheels in CI

build library and also Python wheels in CI #3

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- master
release:
types:
- released
workflow_dispatch:
jobs:
python-wheels:
strategy:
matrix:
runs-on:
- ubuntu-latest
# macos-13 is an intel runner, macos-14 is apple silicon
- macos-13
- macos-latest
- windows-latest
runs-on: ${{ matrix.runs-on }}
steps:
- uses: jwlawson/actions-setup-cmake@802fa1a2c4e212495c05bf94dba2704a92a472be # v2.0.2
with:
cmake-version: ${{ inputs.cmake-version }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: abseil/abseil-cpp
path: ./_abseil-cpp/
- run: mkdir ./_abseil-cpp/build/
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: ./_abseil-cpp/build/
key: abseil-cpp-${{ runner.os }}-${{ runner.arch }}
- run: |
cmake -DCMAKE_CXX_STANDARD=${{ inputs.cmake-cxx-standard }} ..
cmake --build . --target install
cmake --install .
working-directory: ./_abseil-cpp/build/
- run: rm -rf ./_abseil-cpp/
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: wheel-s2geometry-${{ matrix.runs-on }}
path: ./wheelhouse/*.whl