Skip to content

Commit 49a9f89

Browse files
committed
Added 'Python package for macOS' workflow (1/2)
1 parent a1db2c9 commit 49a9f89

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package for macOS
5+
6+
env:
7+
SFML_VERSION: 2.5.1
8+
9+
on:
10+
push:
11+
branches: [ master ]
12+
pull_request:
13+
branches: [ master ]
14+
15+
jobs:
16+
build:
17+
18+
runs-on: macos-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python 3.x
23+
uses: actions/setup-python@v1
24+
with:
25+
python-version: '3.x'
26+
- name: Install dependencies
27+
run: |
28+
curl -O https://www.sfml-dev.org/files/SFML-2.5.1-macOS-clang.tar.gz
29+
tar -xvf SFML-2.5.1-macOS-clang.tar.gz
30+
export CPLUS_INCLUDE_PATH=`pwd`/SFML-2.5.1-macos-clang/include
31+
export LIBRARY_PATH=`pwd`/SFML-2.5.1-macos-clang/lib
32+
python -m pip install --upgrade pip
33+
pip install -r requirements.txt
34+
- name: Build bindings
35+
run: |
36+
python setup.py build

0 commit comments

Comments
 (0)