Skip to content

Commit 7b4742d

Browse files
update mac build on github actions
1 parent 106975b commit 7b4742d

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
jobs:
1616
build-mac:
17-
runs-on: macos-11
17+
runs-on: macos-10.15
1818
strategy:
1919
matrix:
2020
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
@@ -58,6 +58,42 @@ jobs:
5858
name: wheel
5959
path: dist/*
6060

61+
build-mac12-test:
62+
runs-on: macos-12
63+
strategy:
64+
matrix:
65+
python-version: ['3.9', '3.10', '3.11.0-alpha - 3.11.0' ]
66+
steps:
67+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
68+
- uses: actions/checkout@v2
69+
with:
70+
submodules: recursive
71+
72+
- name: Setup Python
73+
uses: actions/[email protected]
74+
with:
75+
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
76+
python-version: ${{ matrix.python-version }}
77+
# The target architecture (x86, x64) of the Python interpreter.
78+
architecture: x64
79+
80+
# Runs a set of commands using the runners shell
81+
- name: Build raylib
82+
run: |
83+
cd raylib-c
84+
mkdir build
85+
cd build
86+
cmake -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
87+
make -j2
88+
sudo make install
89+
sudo cp ../src/extras/* /usr/local/include/
90+
91+
- name: Build raylib-python-cffi
92+
run: |
93+
python -m pip install --upgrade pip
94+
pip3 install cffi
95+
pip3 install wheel
96+
python setup.py bdist_wheel
6197
6298
build-linux:
6399
runs-on: ubuntu-18.04

0 commit comments

Comments
 (0)