-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Conda on macOS; limit gym to 0.21.0; and other changes (#313)
* Support Conda on macOS * Multiple changes: - Improve development installation, - Fix Boost.Bind compilation warnings, - Replace scipy dependency with numpy, - Add GitHub workflow to build on macOS. * Use gym<=0.21.0 * Make windows-2016 builds experimental, to avoid failure
- Loading branch information
Showing
18 changed files
with
250 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build gfootball on Mac | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'gfootball/doc/**' | ||
- '*.md' | ||
- '.dockerignore' | ||
- '.gitignore' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-mac: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ macos-10.15, macos-latest ] | ||
steps: | ||
- name: Check out football repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install brew dependencies | ||
run: brew install python3 cmake sdl2 sdl2_image sdl2_ttf sdl2_gfx boost boost-python3 | ||
|
||
- name: Upgrade pip and install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip setuptools wheel build psutil | ||
python3 -m pip install -r requirements.txt | ||
- name: Build package | ||
run: python3 -m build --no-isolation --wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
third_party/gfootball_engine/build* | ||
# When updating this file don't forget to update MANIFEST.in | ||
|
||
# Python related files | ||
build/ | ||
*.egg-info | ||
*.egg-info/ | ||
__pycache__ | ||
dist/ | ||
# virtual environment | ||
football-env*/ | ||
|
||
# CMake related directories and files | ||
third_party/gfootball_engine/build* | ||
third_party/gfootball_engine/CMakeFiles/ | ||
third_party/gfootball_engine/Testing/ | ||
third_party/gfootball_engine/.cmake/ | ||
cmake-build-*/ | ||
vcpkg_installed/ | ||
C[M,m]akeCache.txt | ||
Makefile | ||
cmake_install.cmake | ||
*.a | ||
*.so | ||
*.dylib | ||
C[M,m]akeCache.txt | ||
third_party/gfootball_engine/CMakeFiles/ | ||
third_party/gfootball_engine/Makefile | ||
third_party/gfootball_engine/cmake_install.cmake | ||
third_party/gfootball_engine/gameplayfootball | ||
footballenv/ | ||
football-env*/ | ||
cmake-build-debug/ | ||
*.pyd | ||
*.cbp | ||
|
||
# IDE | ||
.idea | ||
.vs | ||
vcpkg_installed/ | ||
dist/ | ||
.vs* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
pygame>=1.9.6 | ||
opencv-python | ||
psutil | ||
scipy | ||
gym>=0.11.0 | ||
numpy | ||
gym<=0.21.0 | ||
absl-py | ||
wheel |
Oops, something went wrong.