@@ -52,19 +52,19 @@ jobs:
52
52
python -m pip install --upgrade pip
53
53
pip3 install cffi
54
54
pip3 install wheel
55
- python setup.py bdist_wheel --py-limited-api=cp37
55
+ python setup.py bdist_wheel --plat-name macosx_10_15_x86_64 -- py-limited-api=cp37
56
56
57
57
- name : Upload build Artifact wheel
58
58
59
59
with :
60
60
name : wheel
61
61
path : dist/*
62
62
63
- build-mac12-test :
63
+ build-mac12-arm64 :
64
64
runs-on : macos-12
65
65
strategy :
66
66
matrix :
67
- python-version : ['3.10' ]
67
+ python-version : ['3.10.5 ' ]
68
68
steps :
69
69
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
70
70
- uses : actions/checkout@v2
@@ -77,15 +77,15 @@ jobs:
77
77
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
78
78
python-version : ${{ matrix.python-version }}
79
79
# The target architecture (x86, x64) of the Python interpreter.
80
- architecture : x64
80
+ architecture : universal2
81
81
82
82
# Runs a set of commands using the runners shell
83
83
- name : Build raylib
84
84
run : |
85
85
cd raylib-c
86
86
mkdir build
87
87
cd build
88
- cmake -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
88
+ cmake CMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
89
89
make -j2
90
90
sudo make install
91
91
- name : Copy extras
@@ -100,6 +100,12 @@ jobs:
100
100
python setup.py bdist_wheel --py-limited-api=cp310
101
101
102
102
103
+ - name : Upload build Artifact wheel
104
+
105
+ with :
106
+ name : wheel
107
+ path : dist/*
108
+
103
109
build-linux :
104
110
runs-on : ubuntu-18.04
105
111
strategy :
@@ -159,7 +165,7 @@ jobs:
159
165
160
166
- name : Build raylib-python-cffi
161
167
run : |
162
- python3 setup.py bdist_wheel
168
+ python3 setup.py bdist_wheel --py-limited-api=cp37
163
169
164
170
- name : Upload build Artifact wheel
165
171
0 commit comments