Skip to content

Commit

Permalink
temp: Try CI testing with Python
Browse files Browse the repository at this point in the history
  • Loading branch information
CFSworks committed Oct 7, 2019
1 parent 8a5aaf9 commit b359848
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions .github/workflows/ci.yml
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b359848

Please sign in to comment.