-
Notifications
You must be signed in to change notification settings - Fork 12
84 lines (80 loc) · 2.98 KB
/
Copy pathpython-package.yml
File metadata and controls
84 lines (80 loc) · 2.98 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build and Publish Artifacts
on:
push:
branches:
- dev
env:
MACOSX_DEPLOYMENT_TARGET: "10.12"
CIBW_BUILD: "cp310-* cp311-* cp312-*"
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-14]
python_version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Install setuptools
run: |
python -m pip install --upgrade pip
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable
echo "PATH=${PATH}:${HOME}/.cargo/bin" >> "$GITHUB_ENV"
rustc --version
python -m pip install build setuptools setuptools-rust
- name: Build CPU wheels with cibuildwheel
run: |
python -m pip install cibuildwheel==2.22.0
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
name: esat-wheels-cpu-${{ matrix.os }}-py${{ matrix.python_version }}
path: ./wheelhouse/*.whl
- name: Build GPU wheels with cibuildwheel
run: |
rm -rf wheelhouse
python -m pip install cibuildwheel==2.22.0
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
name: esat-wheels-gpu-${{ matrix.os }}-py${{ matrix.python_version }}
path: ./wheelhouse/*.whl
build_windows_wheel:
name: Build wheels on windows-latest
runs-on: windows-latest
strategy:
matrix:
python_version: [ "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Install setuptools
run: |
python -m pip install --upgrade pip
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable
rustup target add aarch64-pc-windows-msvc i686-pc-windows-msvc x86_64-pc-windows-msvc
echo "${HOME}/.cargo/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
python -m pip install build setuptools setuptools-rust
- name: Build CPU wheels with cibuildwheel
run: |
python -m pip install cibuildwheel==2.22.0
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
name: esat-wheels-cpu-windows-py${{ matrix.python_version }}
path: ./wheelhouse/*.whl
- name: Build GPU wheels with cibuildwheel
run: |
Remove-Item -Recurse -Force wheelhouse
python -m pip install cibuildwheel==2.22.0
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
name: esat-wheels-gpu-windows-py${{ matrix.python_version }}
path: ./wheelhouse/*.whl