build #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
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 | |
build_tool_args: -j4 | |
preset: ci-pip-cuda | |
sub_packages: '["nvcc", "cudart"]' | |
- os: windows-2022 | |
build_tool_args: /p:CL_MPCount=4 | |
preset: ci-pip-cuda | |
sub_packages: '["nvcc", "cudart", "visual_studio_integration"]' | |
- os: macos-13 | |
preset: pip | |
build_tool_args: -j4 | |
- os: macos-14 | |
preset: pip | |
build_tool_args: -j4 | |
max-parallel: 4 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Jimver/[email protected] | |
if: ${{ !startsWith(matrix.os, 'macos') }} | |
with: | |
cuda: '12.5.1' | |
method: 'network' | |
sub-packages: ${{ matrix.sub_packages }} | |
non-cuda-sub-packages: '[]' | |
- uses: lukka/get-cmake@latest | |
with: | |
cmakeVersion: "3.26.0" | |
- 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="--preset=${{ matrix.preset }}" --config-settings=build.tool-args="${{ matrix.build_tool_args }}" -v |