Files
Mujoco_WASM/.github/workflows/build.yml
T
Saran Tunyasuvunakool dbf6c74f8f Add a comment to build.yml to clarify that it's not "official".
PiperOrigin-RevId: 450679854
Change-Id: I0a71c02c61b6ee8969b47590ad87f1dc5fdf145b
2022-05-24 07:47:09 -07:00

56 lines
1.5 KiB
YAML

# This configuration is used to build and test on GitHub Actions only.
# It is not the same configuration that is used by DeepMind to create release binaries.
# The "official" binaries are built with LLVM/Clang on all platforms, and are linked against libc++
# on Linux.
name: build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
mujoco:
strategy:
matrix:
include:
- os: ubuntu-20.04
cmake_build_args: "-G Ninja -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10"
- os: macos-12
cmake_build_args: "-G Ninja"
- os: windows-2022
name: "MuJoCo on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
env:
CMAKE_BUILD_ARGS: ${{ matrix.cmake_build_args }}
steps:
- uses: actions/checkout@v2
- name: Prepare Linux
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get install \
libgl1-mesa-dev \
libxinerama-dev \
libxcursor-dev \
libxrandr-dev \
libxi-dev \
ninja-build
- name: Prepare macOS
if: ${{ runner.os == 'macOS' }}
run: brew install ninja
- name: Configure
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release $CMAKE_BUILD_ARGS ..
- name: Build
working-directory: build
run: cmake --build . --config=Release
- name: Test
working-directory: build
run: ctest -C Release .