From 0da99c695f19e03d57abce26e1081c8dc7da4eb3 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Thu, 17 Apr 2025 17:23:20 +0200 Subject: [PATCH] PG-1467 Add clang builds to CI Add clang compiler to CI matrix --- .github/workflows/psp-matrix.yml | 2 ++ .github/workflows/psp-reusable.yml | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/psp-matrix.yml b/.github/workflows/psp-matrix.yml index ec64492a209..4c1f3319e5f 100644 --- a/.github/workflows/psp-matrix.yml +++ b/.github/workflows/psp-matrix.yml @@ -12,11 +12,13 @@ jobs: strategy: matrix: os: ['ubuntu-22.04'] + compiler: [gcc, clang] build_type: [debug,debugoptimized] build_script: [make, meson] uses: ./.github/workflows/psp-reusable.yml with: os: ${{ matrix.os }} + compiler: ${{ matrix.compiler }} build_type: ${{ matrix.build_type }} build_script: ${{ matrix.build_script }} secrets: inherit diff --git a/.github/workflows/psp-reusable.yml b/.github/workflows/psp-reusable.yml index 44742bab3ff..b6f4de3f90e 100644 --- a/.github/workflows/psp-reusable.yml +++ b/.github/workflows/psp-reusable.yml @@ -5,6 +5,9 @@ on: os: type: string required: true + compiler: + type: string + required: true build_type: type: string required: true @@ -13,7 +16,8 @@ on: required: true env: - artifact_name: build-${{ inputs.os }}-${{ inputs.build_script }}-${{ inputs.build_type }} + artifact_name: build-${{ inputs.os }}-${{ inputs.compiler }}-${{ inputs.build_script }}-${{ inputs.build_type }} + CC: ${{ inputs.compiler }} jobs: build: