8
8
jobs :
9
9
linux :
10
10
runs-on : ubuntu-20.04
11
+ strategy :
12
+ matrix :
13
+ pyver : [cp310-cp310, cp312-cp312]
11
14
steps :
12
15
- uses : actions/checkout@v4
13
16
- name : Docker Image
14
17
run : docker build SDK -t pypi
15
18
- name : Build
16
19
run : |
17
- docker run -e PYVER=cp310-cp310 -e SKBUILD_BUILD_OPTIONS=-j4 --rm -v `pwd`:/workspace pypi
20
+ docker run -e PYVER=${{ matrix.pyver }} -e SKBUILD_BUILD_OPTIONS=-j4 --rm -v `pwd`:/workspace pypi
18
21
f=`ls *.whl`
19
22
mv $f ${f/linux/manylinux2014}
20
23
pip3 install twine
21
24
python -m twine upload --repository pypi *.whl
22
25
windows :
23
26
runs-on : windows-2019
27
+ strategy :
28
+ matrix :
29
+ pyver : ['3.10', '3.12']
24
30
steps :
25
31
- uses : actions/checkout@v4
26
32
- uses : ilammy/msvc-dev-cmd@v1
27
33
with :
28
34
toolset : 14.1
29
35
- uses : actions/setup-python@v5
30
36
with :
31
- python-version : ' 3.10 '
37
+ python-version : ${{ matrix.pyver }}
32
38
# see https://github.com/actions/runner-images/issues/6627#issuecomment-1328214957
33
39
- name : Remove Perl Strawberry (Workaround)
34
40
run : rm -rf C:/Strawberry/
39
45
.\VulkanSDK-1.3.224.1-Installer.exe --accept-licenses --default-answer --confirm-command install
40
46
- name : Build
41
47
run : |
42
- python -m pip install --upgrade pip==22.0.4
48
+ python -m pip install --upgrade pip==24.0
43
49
pip install setuptools wheel twine
44
50
pip wheel . --verbose
45
51
python -m twine upload --repository pypi *.whl
@@ -48,11 +54,14 @@ jobs:
48
54
SKBUILD_BUILD_OPTIONS : -j4
49
55
macos :
50
56
runs-on : macos-12
57
+ strategy :
58
+ matrix :
59
+ pyver : ['3.10', '3.12']
51
60
steps :
52
61
- uses : actions/checkout@v4
53
62
- uses : actions/setup-python@v5
54
63
with :
55
- python-version : ' 3.10 '
64
+ python-version : ${{ matrix.pyver }}
56
65
- name : Build
57
66
run : |
58
67
pip install setuptools wheel twine
0 commit comments