-
Notifications
You must be signed in to change notification settings - Fork 11
73 lines (57 loc) · 1.87 KB
/
test_release.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
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Create release wheels / Do not publish!
on: workflow_dispatch
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
# Used to host cibuildwheel
- uses: actions/setup-python@v5
- name: Download OpenCL SDK
if: matrix.os == 'windows-latest'
uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9
with:
url: "https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/files/1406216/lightOCLSDK.zip"
target: "."
retry-times: 3
- name: Unzip OpenCL SDK
if: matrix.os == 'windows-latest'
run: |
mkdir OCLSDK
7z x lightOCLSDK.zip -oOCLSDK
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
if: runner.os != 'macOS'
run: python -m cibuildwheel --output-dir wheelhouse
- name: Build wheels
if: runner.os == 'macOS'
env:
CMAKE_GENERATOR: Xcode
MACOSX_DEPLOYMENT_TARGET: 10.14
VCPKG_ENV_PASSTHROUGH: MACOSX_DEPLOYMENT_TARGET
run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
sdist:
name: Create source release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Install build package
run: python -m pip install build
- name: Create source distribution
run: python -m build -s
- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: ./dist/*