mirror of
https://github.com/panda3d/panda3d.git
synced 2026-04-30 19:50:33 -05:00
@@ -109,6 +109,7 @@ jobs:
|
||||
libeigen3-dev 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
|
||||
python3-setuptools
|
||||
|
||||
# Workaround for CMake 3.12 finding this first:
|
||||
|
||||
@@ -180,37 +181,6 @@ jobs:
|
||||
run: cmake --build . --config ${{ matrix.config }} --parallel 4
|
||||
# END A
|
||||
|
||||
- name: Setup Python (Python 2.7)
|
||||
if: contains(matrix.python, 'YES')
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 2.7
|
||||
- name: Configure (Python 2.7)
|
||||
if: contains(matrix.python, 'YES')
|
||||
working-directory: build
|
||||
shell: bash
|
||||
run: >
|
||||
cmake -DWANT_PYTHON_VERSION=2.7
|
||||
-DPython_FIND_REGISTRY=NEVER -DPython_ROOT=$pythonLocation .
|
||||
- name: Build (Python 2.7)
|
||||
if: contains(matrix.python, 'YES')
|
||||
# BEGIN A
|
||||
working-directory: build
|
||||
run: cmake --build . --config ${{ matrix.config }} --parallel 4
|
||||
# END A
|
||||
- name: Test (Python 2.7)
|
||||
# BEGIN B
|
||||
if: contains(matrix.python, 'YES')
|
||||
working-directory: build
|
||||
shell: bash
|
||||
env:
|
||||
PYTHONPATH: ${{ matrix.config }}
|
||||
run: |
|
||||
PYTHON_EXECUTABLE=$(grep 'Python_EXECUTABLE:' CMakeCache.txt | sed 's/.*=//')
|
||||
$PYTHON_EXECUTABLE -m pip install pytest
|
||||
$PYTHON_EXECUTABLE -m pytest ../tests
|
||||
# END B
|
||||
|
||||
- name: Setup Python (Python 3.5)
|
||||
if: contains(matrix.python, 'YES')
|
||||
uses: actions/setup-python@v1
|
||||
@@ -407,18 +377,6 @@ jobs:
|
||||
run: |
|
||||
python -m pip install pytest
|
||||
PYTHONPATH=built LD_LIBRARY_PATH=built/lib DYLD_LIBRARY_PATH=built/lib python -m pytest
|
||||
- name: Set up Python 2.7
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 2.7
|
||||
- name: Build Python 2.7
|
||||
run: |
|
||||
python makepanda/makepanda.py --no-copy-python --git-commit=${{github.sha}} --outputdir=built --everything --no-eigen --python-incdir=$pythonLocation/include --python-libdir=$pythonLocation/lib --verbose --threads=4
|
||||
- name: Test Python 2.7
|
||||
shell: bash
|
||||
run: |
|
||||
python -m pip install pytest
|
||||
PYTHONPATH=built LD_LIBRARY_PATH=built/lib DYLD_LIBRARY_PATH=built/lib python -m pytest
|
||||
- name: Make installer
|
||||
run: |
|
||||
python makepanda/makepackage.py --verbose --lzma
|
||||
|
||||
Reference in New Issue
Block a user