[mujoco] Add native dm_control locomotion and Soccer #1063
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
| name: Clang-Tidy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| actions: write | |
| contents: read | |
| jobs: | |
| clang-tidy: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 120 | |
| env: | |
| CACHE_BRANCH: ${{ github.head_ref || github.ref_name }} | |
| CLANG_TIDY_BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }} | |
| CLANG_TIDY_HEAD_SHA: ${{ github.sha }} | |
| DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version: "1.27" | |
| - uses: actions/setup-java@v6 | |
| with: | |
| distribution: temurin | |
| java-version: "25" | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Linux dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y swig qt6-base-dev | |
| python -m pip install --upgrade cmake | |
| - name: Restore Bazel caches | |
| uses: actions/cache/restore@v6 | |
| with: | |
| path: | | |
| ~/.cache/bazelisk | |
| ~/.cache/envpool-bazel-repo | |
| ~/.cache/envpool-bazel-disk | |
| key: bazel-clang-tidy-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.bazelversion') }}-${{ env.CACHE_BRANCH }} | |
| restore-keys: | | |
| bazel-clang-tidy-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.bazelversion') }}-${{ env.DEFAULT_BRANCH }}- | |
| bazel-clang-tidy-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.bazelversion') }}- | |
| - name: Install bazelisk | |
| run: | | |
| go install github.com/bazelbuild/bazelisk@latest | |
| echo "$HOME/go/bin" >> "$GITHUB_PATH" | |
| - name: Run clang-tidy | |
| run: | | |
| make BAZELOPT="--repository_cache=$HOME/.cache/envpool-bazel-repo --disk_cache=$HOME/.cache/envpool-bazel-disk" clang-tidy | |
| - name: Shut down Bazel | |
| if: ${{ always() && !cancelled() }} | |
| continue-on-error: true | |
| run: bazelisk shutdown | |
| - name: Save Bazel caches | |
| id: save-bazel-caches | |
| if: ${{ always() && !cancelled() }} | |
| uses: actions/cache/save@v6 | |
| with: | |
| path: | | |
| ~/.cache/bazelisk | |
| ~/.cache/envpool-bazel-repo | |
| ~/.cache/envpool-bazel-disk | |
| key: bazel-clang-tidy-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.bazelversion') }}-${{ env.CACHE_BRANCH }}-${{ github.run_id }}-attempt${{ github.run_attempt }} | |
| - name: Prune older Bazel caches | |
| if: ${{ success() && (steps.save-bazel-caches.outcome == 'success' || steps.save-bazel-caches.outcome == 'skipped') }} | |
| continue-on-error: true | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: >- | |
| python scripts/prune_actions_caches.py | |
| --repo "${{ github.repository }}" | |
| --prefix "bazel-clang-tidy-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.bazelversion') }}-" | |
| --group-by-branch | |
| --delete-missing-branches | |
| --keep 1 |