Skip to content

Commit 2b1b7e4

Browse files
use docker to build linux
1 parent a796f0d commit 2b1b7e4

File tree

1 file changed

+9
-28
lines changed

1 file changed

+9
-28
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
# You can use PyPy versions in python-version.
194194
# For example, pypy2 and pypy3
195195
matrix:
196-
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14.0-rc.1', 'pypy-3.10', 'pypy-3.11' ]
196+
python-version: ['python3.10', 'python3.11', 'python3.12', 'python3.13', 'pypy3.10', 'pypy3.11']
197197
raylib-platform: ['Desktop', 'SDL', 'DRM']
198198
steps:
199199
- name: fix node
@@ -204,23 +204,6 @@ jobs:
204204
with:
205205
submodules: recursive
206206

207-
- name: Setup Python
208-
uses: actions/setup-python@v5
209-
with:
210-
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
211-
python-version: ${{ matrix.python-version }}
212-
# The target architecture (x86, x64) of the Python interpreter.
213-
architecture: x64
214-
215-
- name: Build SDL
216-
run: |
217-
wget https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.32.8.tar.gz
218-
tar xvfz release-2.32.8.tar.gz
219-
mkdir build
220-
cd build
221-
cmake ../SDL-release-2.32.8 -DSDL_SHARED=OFF -DSDL_STATIC=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release
222-
cmake --build . --config Release
223-
cmake --install .
224207

225208
# Runs a set of commands using the runners shell
226209
- name: Build raylib
@@ -240,16 +223,16 @@ jobs:
240223
env:
241224
RAYLIB_PLATFORM: ${{ matrix.raylib-platform }}
242225
run: |
243-
python -m pip install --upgrade pip
244-
pip3 install --upgrade "cffi>=1.17.1"
245-
pip3 install --upgrade wheel
246-
pip3 install --upgrade setuptools
247-
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
226+
${{ matrix.python-version }} -m pip install --upgrade pip
227+
${{ matrix.python-version }} -m pip install --upgrade "cffi>=1.17.1"
228+
${{ matrix.python-version }} -m pip --upgrade wheel
229+
${{ matrix.python-version }} -m pip --upgrade setuptools
230+
${{ matrix.python-version }} setup.py bdist_wheel --plat-name manylinux2014_x86_64
248231
- name: Test
249232
run: |
250-
pip3 install dist/*.whl
233+
${{ matrix.python-version }} -m pip install dist/*.whl
251234
cd /
252-
python3 -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
235+
${{ matrix.python-version }} -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
253236
cat /tmp/output
254237
if grep -q "INFO: Initializing raylib" /tmp/output; then
255238
echo "Passed"
@@ -258,7 +241,7 @@ jobs:
258241
echo "Failed"
259242
exit 1
260243
fi
261-
244+
262245
263246
- name: Upload build Artifact wheel
264247
uses: actions/upload-artifact@v4
@@ -267,8 +250,6 @@ jobs:
267250
path: dist/*
268251

269252

270-
271-
272253
build-windows:
273254
# The type of runner that the job will run on
274255
runs-on: windows-2022

0 commit comments

Comments
 (0)