Address TODO cleanups and expand collision tests #3360
Workflow file for this run
This file contains hidden or 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
| # https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
| name: CI gz-physics | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| paths-ignore: | |
| - ".github/workflows/cache_*.yml" | |
| - "docker/dev/**" | |
| - "docs/**" | |
| - ".readthedocs.yml" | |
| - "tutorials/**" | |
| - "**/*.md" | |
| - "**/*.rst" | |
| - "**/*.po" | |
| - "**/*.pot" | |
| pull_request: | |
| branches: | |
| - "**" | |
| paths-ignore: | |
| - ".github/workflows/cache_*.yml" | |
| - "docker/dev/**" | |
| - "docs/**" | |
| - ".readthedocs.yml" | |
| - "tutorials/**" | |
| - "**/*.md" | |
| - "**/*.rst" | |
| - "**/*.po" | |
| - "**/*.pot" | |
| schedule: | |
| # Cron syntax: [minute hour day_of_the_month month day_of_the_week] | |
| - cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00 | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test_gazebo: | |
| name: GZ Physics Tests | |
| runs-on: ubuntu-latest | |
| env: | |
| # Keep parallelism modest to avoid process limits on shared runners. | |
| DART_PARALLEL_JOBS: 8 | |
| # Avoid spawning too many ninja processes on shared runners (posix_spawn failures) | |
| CMAKE_BUILD_PARALLEL_LEVEL: 1 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup pixi | |
| uses: prefix-dev/[email protected] | |
| with: | |
| cache: true | |
| - name: Install apt packages | |
| uses: awalsh128/[email protected] | |
| with: | |
| packages: libgl1-mesa-dev libglu1-mesa-dev | |
| version: 1.0 | |
| - name: Setup sccache | |
| uses: mozilla-actions/[email protected] | |
| with: | |
| disable_annotations: true | |
| - name: Configure environment for compiler cache | |
| run: | | |
| if [ -n "${ACTIONS_CACHE_URL:-}" ]; then | |
| echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV | |
| else | |
| echo "SCCACHE_GHA_ENABLED=false" >> $GITHUB_ENV | |
| fi | |
| echo "DART_COMPILER_CACHE=sccache" >> $GITHUB_ENV | |
| echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV | |
| echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV | |
| echo "CCACHE_BASEDIR=${GITHUB_WORKSPACE}" >> $GITHUB_ENV | |
| echo "CCACHE_DIR=${RUNNER_TEMP}/ccache" >> $GITHUB_ENV | |
| echo "CCACHE_COMPRESS=true" >> $GITHUB_ENV | |
| echo "CCACHE_MAXSIZE=5G" >> $GITHUB_ENV | |
| mkdir -p "${RUNNER_TEMP}/ccache" | |
| - name: Test gz-physics | |
| env: | |
| DART_PARALLEL_JOBS: 8 | |
| run: | | |
| pixi r -e gazebo test-gz |