-
-
Notifications
You must be signed in to change notification settings - Fork 982
62 lines (62 loc) · 1.85 KB
/
pip-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
60
61
62
name: PIP packages
on:
push:
tags: ["v*"]
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Docker Image
run: docker build SDK -t pypi
- name: Build
run: |
docker run -e PYVER=cp310-cp310 -e SKBUILD_BUILD_OPTIONS=-j4 --rm -v `pwd`:/workspace pypi
f=`ls *.whl`
mv $f ${f/linux/manylinux2014}
pip3 install twine
python -m twine upload --repository pypi *.whl
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
toolset: 14.1
- uses: actions/setup-python@v5
with:
python-version: '3.10'
# see https://github.com/actions/runner-images/issues/6627#issuecomment-1328214957
- name: Remove Perl Strawberry (Workaround)
run: rm -rf C:/Strawberry/
shell: bash
- name: Install Dependencies
run: |
curl -LO https://sdk.lunarg.com/sdk/download/1.3.224.1/windows/VulkanSDK-1.3.224.1-Installer.exe
.\VulkanSDK-1.3.224.1-Installer.exe --accept-licenses --default-answer --confirm-command install
- name: Build
run: |
python -m pip install --upgrade pip==22.0.4
pip install setuptools wheel twine
pip wheel . --verbose
python -m twine upload --repository pypi *.whl
env:
VULKAN_SDK: C:\VulkanSDK\1.3.224.1
SKBUILD_BUILD_OPTIONS: -j4
macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build
run: |
pip install setuptools wheel twine
pip wheel . --verbose
python -m twine upload --repository pypi *.whl
env:
SKBUILD_BUILD_OPTIONS: -j3