Skip to content

Commit e0522ef

Browse files
Update build.yml
1 parent fd6233e commit e0522ef

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,46 @@ on:
1313

1414

1515
jobs:
16+
build-mac:
17+
runs-on: macos-10.15
18+
strategy:
19+
matrix:
20+
python-version: [ 3.9 ]
21+
steps:
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v2
24+
with:
25+
submodules: recursive
26+
27+
- name: Setup Python
28+
uses: actions/[email protected]
29+
with:
30+
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
31+
python-version: ${{ matrix.python-version }}
32+
# The target architecture (x86, x64) of the Python interpreter.
33+
architecture: x64
34+
35+
# Runs a set of commands using the runners shell
36+
- name: Build raylib
37+
run: |
38+
cd raylib-c
39+
cd src
40+
make -j2
41+
- name: Build raylib-python-cffi
42+
run: |
43+
python -m pip install --upgrade pip
44+
pip3 install cffi
45+
pip3 install wheel
46+
rm raylib/dynamic/*.so* raylib/dynamic/*.dll raylib/dynamic/*.dylib raylib/dynamic/32bit/*
47+
python setup.py bdist_wheel
48+
49+
- name: Upload build Artifact wheel
50+
uses: actions/[email protected]
51+
with:
52+
name: wheel
53+
path: dist/*
54+
55+
1656
build-linux:
1757
runs-on: ubuntu-18.04
1858
strategy:

0 commit comments

Comments
 (0)