CI: Run the clang plugins during PR workflows

This commit is contained in:
Timothy Flynn 2024-08-27 14:31:25 -04:00 committed by Tim Flynn
parent 953318e372
commit 0dd8fe1f0f
Notes: github-actions[bot] 2024-08-27 23:25:32 +00:00
2 changed files with 16 additions and 24 deletions

View file

@ -15,17 +15,28 @@ jobs:
matrix:
os_name: ['Linux']
os: [ubuntu-22.04]
fuzzer: ['NO_FUZZ', 'FUZZ']
toolchain: ['Clang']
fuzzer: ['NO_FUZZ']
toolchain: ['GNU']
clang_plugins: [false]
include:
- os_name: 'Linux'
os: ubuntu-22.04
fuzzer: 'NO_FUZZ'
toolchain: 'Clang'
clang_plugins: true
- os_name: 'macOS'
os: macos-14
fuzzer: 'NO_FUZZ'
toolchain: 'Clang'
clang_plugins: false
- os_name: 'Linux'
os: ubuntu-22.04
fuzzer: 'NO_FUZZ'
toolchain: 'GNU'
fuzzer: 'FUZZ'
toolchain: 'Clang'
clang_plugins: false
uses: ./.github/workflows/lagom-template.yml
with:
@ -33,3 +44,4 @@ jobs:
os_name: ${{ matrix.os_name }}
os: ${{ matrix.os }}
fuzzer: ${{ matrix.fuzzer }}
clang_plugins: ${{ matrix.clang_plugins }}

View file

@ -1,20 +0,0 @@
name: Validate code with clang plugins
# FIXME: The plugins seem to make this build uncacheable by ccache. We should figure that out and enable this job on PRs.
# Perhaps with https://ccache.dev/manual/latest.html#config_compiler_check, which mentions plugins.
on: [push]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build-and-verify:
if: always() && github.repository == 'LadybirdBrowser/ladybird' && github.ref == 'refs/heads/master'
uses: ./.github/workflows/lagom-template.yml
with:
toolchain: 'Clang'
os_name: 'Linux'
os: 'ubuntu-22.04'
clang_plugins: true