Merge pull request #1270 from bradh/generic_compression_rework #1901
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: clang | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
env: | |
- { NAME: "nothing" } | |
- { NAME: "libde265 (1) / x265 / aom / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 1 } | |
- { NAME: "libde265 (2) / x265 / aom / graphics", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 2 } | |
env: ${{ matrix.env }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
./scripts/install-ci-linux.sh | |
sudo apt install clang | |
- name: Prepare CI | |
env: | |
CC: clang | |
CXX: clang++ | |
run: | | |
./scripts/prepare-ci.sh | |
- name: Run tests | |
env: | |
CC: clang | |
CXX: clang++ | |
run: | | |
./scripts/run-ci.sh | |
tidy: | |
env: | |
WITH_GRAPHICS: 1 | |
WITH_X265: 1 | |
WITH_AOM: 1 | |
WITH_DAV1D: 1 | |
WITH_LIBDE265: 1 | |
CLANG_TIDY: 1 | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
./scripts/install-ci-linux.sh | |
sudo apt install clang-tidy-12 | |
- name: Prepare CI | |
run: | | |
./scripts/prepare-ci.sh | |
- name: Run tests | |
run: | | |
./scripts/run-ci.sh | |
- name: Run clang-tidy | |
run: | | |
run-clang-tidy-12 -checks=-clang-diagnostic-tautological-compare,-clang-diagnostic-tautological-constant-out-of-range-compare -j$(nproc) |