Fix handling of long pathnames with clang tidy #1343
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: rocm-cmake | |
| on: [push, pull_request] | |
| jobs: | |
| cancel: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.6.0 | |
| with: | |
| access_token: ${{ github.token }} | |
| lint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade setuptools pip wheel | |
| python -m pip install cget cmakelang[YAML] | |
| - name: Run linter | |
| run: | | |
| cget build -T analyze -DSPHINX_EXECUTABLE=python3 | |
| # python isn't sphinx, but we won't be calling it anyway | |
| test: | |
| runs-on: ${{ matrix.platform }} | |
| strategy: | |
| max-parallel: 4 | |
| matrix: | |
| platform: | |
| - ubuntu-24.04 | |
| - windows-2022 | |
| cmake-version: | |
| - 3.31.0 | |
| - 3.22.1 | |
| - 3.16.3 | |
| generator-flag: | |
| - '' | |
| # NMake generator doesnt work with cget on older cmake because it | |
| # incorrectly passes the -j flag, so use ninja | |
| exclude: | |
| - platform: windows-2022 | |
| cmake-version: 3.16.3 | |
| generator-flag: '' | |
| include: | |
| - platform: windows-2022 | |
| cmake-version: 3.16.3 | |
| generator-flag: '-G Ninja' | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.10" | |
| - name: Setup cmake | |
| uses: jwlawson/actions-setup-cmake@v1.9 | |
| with: | |
| cmake-version: ${{ matrix.cmake-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade setuptools pip wheel | |
| python -m pip install cget ninja | |
| python -m pip install -r docs/requirements.txt | |
| - name: Install Doxygen | |
| uses: ssciwr/doxygen-install@v1 | |
| with: | |
| version: "1.10.0" | |
| - name: Setup git | |
| run: | | |
| git config --global user.email "you@example.com" | |
| git config --global user.name "Your Name" | |
| - name: Cmake version | |
| run: cmake --version | |
| - name: Setup tmate session | |
| if: ${{ failure() }} | |
| uses: mxschmitt/action-tmate@v3 | |
| - name: Run tests (default generator) | |
| run: cget build ${{ matrix.generator-flag }} --test | |
| - name: Build docs (default generator) | |
| run: cget build ${{ matrix.generator-flag }} -T doc | |
| - name: Run tests (Ninja generator) | |
| run: cget build ${{ matrix.generator-flag }} -Cy --test -DROCM_CMAKE_GENERATOR=Ninja | |
| - name: Build docs (Ninja generator) | |
| run: cget build ${{ matrix.generator-flag }} -T doc | |