Update build.yml

This commit is contained in:
electronstudio 2021-06-29 15:24:50 +01:00
parent fd6233e0d1
commit e0522ef9d5

View file

@ -13,6 +13,46 @@ on:
jobs: 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: build-linux:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
strategy: strategy: