Skip to content

build

build #2

Workflow file for this run

name: Local pip install
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: Wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
# cmake_cxx_compiler: -DCMAKE_CXX_COMPILER=
- os: windows-2022
- os: macos-13
# cmake_cxx_compiler: -DCMAKE_CXX_COMPILER=
max-parallel: 3
steps:
- uses: actions/checkout@v4
- name: Print environment
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
run: printenv
- uses: lukka/[email protected]
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: ${{ github.workspace }}/vcpkg
vcpkgGitCommitId: 055721089e8037d4d617250814d11f881e557549
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build and install PBAT Python bindings
run: |
pip install . --config-settings="cmake.args=-DPBAT_BUILD_PYTHON_BINDINGS:BOOL=ON;-DPBAT_BUILD_TESTS:BOOL=OFF;-DPBAT_ENABLE_PROFILER:BOOL=ON;-DPBAT_PROFILE_ON_DEMAND:BOOL=ON;-DPBAT_BUILD_SHARED_LIBS:BOOL=OFF;-DPOSITION_INDEPENDENT_CODE:BOOL=ON;-DCMAKE_TOOLCHAIN_FILE='${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake';-DVCPKG_MANIFEST_FEATURES=python;-DPBAT_PROFILE_ON_DEMAND:BOOL=ON;${{ matrix.cmake_cxx_compiler }}" -vvv