-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (51 loc) · 1.56 KB
/
pyinstall.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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: pip-local-cuda
- os: windows-2022
build_tool_args: /p:CL_MPCount=4
preset: pip-local-cuda
- os: macos-13
preset: pip-local
build_tool_args: -j4
- os: macos-14
preset: pip-local
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: '["nvcc", "cudart"]'
non-cuda-sub-packages: '[]'
linux-local-args: '["--toolkit"]'
- 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