Skip to content
Permalink
Browse files

temp: Try CI testing with Python

  • Loading branch information
CFSworks committed Oct 7, 2019
1 parent 8a5aaf9 commit b359848d98b71e2e1b6912374810cf7bd9ac79e6
Showing with 32 additions and 5 deletions.
  1. +32 −5 .github/workflows/ci.yml
@@ -7,8 +7,9 @@ jobs:
strategy:
matrix:
os: [ubuntu-16.04] #[ubuntu-16.04, windows-2016, macOS-10.14]
composite_limit: [0, 30]
composite_limit: [30] #[0, 30]
generator: [Ninja]
config: [Standard]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
@@ -18,16 +19,42 @@ jobs:
if: matrix.os == 'ubuntu-16.04'
run: |
sudo apt-get install build-essential bison flex libfreetype6-dev libgl1-mesa-dev libjpeg-dev libode-dev libopenal-dev libpng-dev libssl-dev libvorbis-dev libx11-dev libxcursor-dev libxrandr-dev nvidia-cg-toolkit zlib1g-dev
- name: Initial configure (no Python)
- name: Configure (no Python)
run: |
mkdir build
cd build
cmake -DCOMPOSITE_SOURCE_LIMIT=${{ matrix.composite_limit }} -DHAVE_PYTHON=OFF ..
cmake -DCOMPOSITE_SOURCE_LIMIT=${{ matrix.composite_limit }} -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DHAVE_PYTHON=OFF ..
env:
CMAKE_GENERATOR: ${{ matrix.generator }}
- name: Initial build (no Python)
CMAKE_BUILD_TYPE: ${{ matrix.config }}
- &build
name: Build (no Python)
working-directory: build
run: cmake --build .
run: cmake --config $CMAKE_BUILD_TYPE --build .
env:
CMAKE_BUILD_TYPE: ${{ matrix.config }}

- &config
name: Configure (Python 2.7)
working-directory: build
run: 'cmake -DHAVE_PYTHON=ON -DWANT_PYTHON_VERSION=$PY_VERSION .'
env:
PY_VERSION: 2.7
- name: Build (Python 2.7)
<<: *build
- &test
name: Test (Python 2.7)
working-directory: build
run: ctest -V -C ${{ matrix.config }}

- name: Configure (Python 3.7)
<<: *config
env:
PY_VERSION: 3.7
- name: Build (Python 3.7)
<<: *build
- name: Test (Python 3.7)
<<: *test

makepanda:
if: 1 == 0

0 comments on commit b359848

Please sign in to comment.
You can’t perform that action at this time.