-
Notifications
You must be signed in to change notification settings - Fork 41
57 lines (48 loc) · 1.98 KB
/
build_mkl.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
name: Build MKL
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
jobs:
build_wheels:
name: Build wheel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# macos-latest now uses arm64 runners, but MKL is x86_64 only, so restrict to the macos-13 runners
# to get x86_64 architecture.
os: [ubuntu-latest, macos-13, windows-2022]
steps:
- uses: actions/checkout@master
- name: Build wheels
uses: pypa/[email protected]
with:
package-dir: backend/mkl
output-dir: wheelhouse
env:
CIBW_BUILD: "cp3*"
CIBW_SKIP: "cp36-* cp37-* *-win32 *-manylinux_i686 *-musllinux_*"
CIBW_BUILD_VERBOSITY: 1
# Clean the build directory between builds
CIBW_BEFORE_BUILD: >-
rm -rf {package}/osqp_sources/build
CIBW_BEFORE_ALL_LINUX: bash .github/workflows/prepare_build_environment_linux_mkl.sh
CIBW_ENVIRONMENT_LINUX: "MKL_ROOT=/opt/intel/oneapi/mkl/latest"
CIBW_REPAIR_WHEEL_COMMAND_LINUX: ""
CIBW_BEFORE_ALL_MACOS: bash .github/workflows/prepare_build_environment_macos_mkl.sh
CIBW_ENVIRONMENT_MACOS: "MKL_ROOT=/opt/intel/oneapi/mkl/latest"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
CIBW_BEFORE_ALL_WINDOWS: bash .github/workflows/prepare_build_environment_windows_mkl.sh
CIBW_ENVIRONMENT_WINDOWS: MKL_ROOT="C:/Program Files (x86)/Intel/oneAPI/mkl/latest" MKL_DIR="C:/Program Files (x86)/Intel/oneAPI/mkl/latest/lib/cmake/mkl"
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair {wheel} --wheel-dir {dest_dir} --no-mangle-all --add-path \"C:/Program Files (x86)/Intel/oneAPI/mkl/latest/redist/intel64\" --add-dll \"mkl_sequential.2.dll;mkl_def.2.dll;mkl_intel_thread.2.dll\""
- name: Upload artifacts to github
uses: actions/upload-artifact@v4
with:
name: wheels-mkl-${{ matrix.os }}
path: ./wheelhouse