libosmesa #172
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
name: build | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
env: | |
MUJOCO_GL: osmesa | |
DISPLAY: ":0" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
activate-environment: test-env | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install libgl1-mesa-dev libxinerama-dev libxcursor-dev libxrandr-dev libxi-dev ninja-build | |
sudo apt-get install ffmpeg libsm6 libxext6 -y | |
sudo apt install python-opengl -y | |
sudo apt install libosmesa6 -y | |
export CPATH=$CONDA_PREFIX/include | |
export C_INCLUDE_PATH=$CONDA_PREFIX/include | |
export LIBRARY_PATH=$CONDA_PREFIX/lib | |
conda install pip --yes | |
conda install -c conda-forge freeglut --yes | |
conda install -c conda-forge glew --yes | |
conda install -c conda-forge mesalib --yes | |
conda install -c conda-forge glfw --yes | |
conda install -c conda-forge libglu --yes | |
conda install -c conda-forge glfw --yes | |
conda install -c conda-forge mesa-libgl-cos7-x86_64 --yes | |
conda install -c menpo glfw3 --yes | |
conda install -c menpo osmesa --yes | |
conda install anaconda::mesa-libgl-cos6-x86_64 --yes | |
pip install --upgrade pip | |
pip install -e . | |
pip install pytest | |
- name: Test with pytest | |
run: | | |
pytest |