Op 8052 baseline impl (extra clean up)-(traget: move to new branch for next changes) #2
Workflow file for this run
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: Code quality | |
on: pull_request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
markdown-link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
# Note: in order to keep an `actions/cache` cache up to date, we must | |
# use the approach detailed in | |
# https://github.com/actions/cache/blob/main/workarounds.md#update-a-cache | |
# i.e. load the most recently created cache that matches a prefix, | |
# then create an entirely new cache with every run. | |
cpp-linters: | |
name: C++ linters | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
config: | |
- os: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache ccache cache | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/ccache | |
key: ubuntu-20.04-ccache-lint-${{ github.run_id }} | |
restore-keys: ubuntu-20.04-ccache-lint- | |
- name: Install dependencies | |
# Configure the system and install library dependencies via | |
# conan packages. | |
run: | | |
python -m pip install cmakelang[YAML] cpplint | |
clang-tidy --version | |
clang-format --version | |
cpplint --version | |
- name: Configure CMake build | |
run: > | |
cmake -S . -B build -DBUILD_TEST="OFF" -DJTRACE=1 -DCMAKE_BUILD_TYPE=Release | |
-DCMAKE_CXX_COMPILER_LAUNCHER=/usr/bin/ccache | |
-DCMAKE_C_COMPILER_LAUNCHER=/usr/bin/ccache | |
--preset lint | |
- name: Build and lint | |
run: | | |
/usr/bin/ccache -s | |
cmake --build build | |
/usr/bin/ccache -s | |
env: | |
CCACHE_DIR: /tmp/ccache | |
sanitizers: | |
name: Sanitizers | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
config: | |
- os: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache ccache cache | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/ccache | |
key: ubuntu-20.04-ccache-sanitize-${{ github.run_id }} | |
restore-keys: ubuntu-20.04-ccache-sanitize- | |
- name: Configure CMake build | |
run: > | |
cmake -S . -B build -DBUILD_TEST="OFF" -DJTRACE=1 -DCMAKE_BUILD_TYPE=Release | |
-DCMAKE_CXX_COMPILER_LAUNCHER=/usr/bin/ccache | |
-DCMAKE_C_COMPILER_LAUNCHER=/usr/bin/ccache | |
--install-prefix ${{ github.workspace }}/dist | |
--preset sanitize |