Skip to content

Commit fe87702

Browse files
CI
1 parent c6971af commit fe87702

File tree

3 files changed

+52
-77
lines changed

3 files changed

+52
-77
lines changed

.github/workflows/windows.yml renamed to .github/workflows/build.yml

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# This is a basic workflow to help you get started with Actions
2-
3-
name: Windows
1+
name: Build
42

53
# Controls when the workflow will run
64
on:
@@ -13,10 +11,56 @@ on:
1311
# Allows you to run this workflow manually from the Actions tab
1412
workflow_dispatch:
1513

16-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
1715
jobs:
18-
# This workflow contains a single job called "build"
19-
build:
16+
build-linux:
17+
runs-on: ubuntu-18.04
18+
strategy:
19+
# You can use PyPy versions in python-version.
20+
# For example, pypy2 and pypy3
21+
matrix:
22+
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
23+
steps:
24+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25+
- uses: actions/checkout@v2
26+
with:
27+
submodules: recursive
28+
29+
- name: Setup Python
30+
uses: actions/[email protected]
31+
with:
32+
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
33+
python-version: ${{ matrix.python-version }}
34+
# The target architecture (x86, x64) of the Python interpreter.
35+
architecture: x64
36+
37+
# Runs a set of commands using the runners shell
38+
- name: Build raylib
39+
run: |
40+
sudo apt update
41+
sudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
42+
cd raylib-c
43+
mkdir build
44+
cd build
45+
cmake -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
46+
make -j2
47+
sudo make install
48+
- name: Build raylib-python-cffi
49+
run: |
50+
python -m pip install --upgrade pip
51+
pip3 install cffi
52+
pip3 install wheel
53+
rm raylib/dynamic/*.so* raylib/dynamic/*.dll raylib/dynamic/*.dylib raylib/dynamic/32bit/*
54+
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
55+
56+
- name: Upload build Artifact wheel
57+
uses: actions/[email protected]
58+
with:
59+
name: wheel
60+
path: dist/*
61+
62+
63+
build-windows:
2064
# The type of runner that the job will run on
2165
runs-on: windows-2019
2266
strategy:

.github/workflows/linux-x64.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ New CFFI API static bindings. Faster, fewer bugs and easier to maintain than ct
1212

1313
We distribute a statically linked binary Raylib library, install from Pypi.
1414

15-
pip3 install raylib==3.7.0.post1
16-
17-
If that doesn't work then try:
18-
1915
pip3 install raylib==3.7.0
2016

2117
Some platforms that should be available:
@@ -56,8 +52,8 @@ Build and install Raylib from the raylib-c directory.
5652
mkdir build
5753
cd build
5854
cmake -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
59-
msbuild ALL_BUILD.vxcproj
60-
copy raylib\Debug\raylib.lib ..\..
55+
msbuild raylib.sln /target:raylib /property:Configuration=Release
56+
copy raylib\Release\raylib.lib ..\..
6157
cd ..\..
6258

6359
To update the dynamic libs, download the official release, e.g. https://github.com/raysan5/raylib/releases/download/3.7.0/raylib-3.7.0_win64_msvc16.zip and extract `raylib.dll`

0 commit comments

Comments
 (0)