From e0522ef9d593dde707db385cc5852e94fcaeed05 Mon Sep 17 00:00:00 2001 From: electronstudio Date: Tue, 29 Jun 2021 15:24:50 +0100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ce29b6..2067b1c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,46 @@ on: jobs: + build-mac: + runs-on: macos-10.15 + strategy: + matrix: + python-version: [ 3.9 ] + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Setup Python + uses: actions/setup-python@v2.2.2 + with: + # Version range or exact version of a Python version to use, using SemVer's version range syntax. + python-version: ${{ matrix.python-version }} + # The target architecture (x86, x64) of the Python interpreter. + architecture: x64 + + # Runs a set of commands using the runners shell + - name: Build raylib + run: | + cd raylib-c + cd src + make -j2 + - name: Build raylib-python-cffi + run: | + python -m pip install --upgrade pip + pip3 install cffi + pip3 install wheel + rm raylib/dynamic/*.so* raylib/dynamic/*.dll raylib/dynamic/*.dylib raylib/dynamic/32bit/* + python setup.py bdist_wheel + + - name: Upload build Artifact wheel + uses: actions/upload-artifact@v2.2.4 + with: + name: wheel + path: dist/* + + build-linux: runs-on: ubuntu-18.04 strategy: