-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (49 loc) · 1.58 KB
/
macos-build.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
name: macos-build
on:
pull_request:
push:
branches:
- master
tags:
- '*'
jobs:
macos_build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [macos-12, macos-14]
# python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.11"]
env:
PYTHON_VERSION: ${{ matrix.python-version }}
MACOSX_DEPLOYMENT_TARGET: 10.14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- uses: ./.github/actions/setup_optimizers_macos
with:
GUROBI_WLS: ${{ secrets.GUROBI_WLS }}
COPT_CLIENT_INI: ${{ secrets.COPT_CLIENT_INI }}
MOSEK_LICENSE: ${{ secrets.MOSEK_LICENSE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHECK_LICENSE: false
ARCH: ${{ runner.arch }}
- name: Install python deps
run: |
python -m pip install pytest numpy highsbox llvmlite tccbox
- name: Build
run: |
python -m pip list
python -m pip install nanobind scikit-build-core[pyproject]
python -m pip install --no-build-isolation -v .
python -c "import pyoptinterface as poi; print(dir(poi))"
python -m pip wheel -w dist --no-build-isolation .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: pyoptinterface-wheel-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }}
path: dist/