Skip to content

Commit 588149b

Browse files
committed
PG-1467 Add clang builds
1 parent 40c32b2 commit 588149b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/psp-matrix.yml

+2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: ['ubuntu-22.04']
15+
compiler: [gcc, clang]
1516
build_type: [debug,debugoptimized]
1617
build_script: [make, meson]
1718
uses: ./.github/workflows/psp-reusable.yml
1819
with:
1920
os: ${{ matrix.os }}
21+
compiler: ${{ matrix.compiler }}
2022
build_type: ${{ matrix.build_type }}
2123
build_script: ${{ matrix.build_script }}
2224
secrets: inherit

.github/workflows/psp-reusable.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
os:
66
type: string
77
required: true
8+
compiler:
9+
type: string
10+
required: true
811
build_type:
912
type: string
1013
required: true
@@ -13,8 +16,8 @@ on:
1316
required: true
1417

1518
env:
16-
artifact_name: build-${{ inputs.os }}-${{ inputs.build_script }}-${{ inputs.build_type }}
17-
coverage_artifact_name: coverage-build-${{ inputs.os }}-${{ inputs.build_script }}-${{ inputs.build_type }}
19+
artifact_name: build-${{ inputs.os }}-${{ inputs.compiler }}-${{ inputs.build_script }}-${{ inputs.build_type }}
20+
coverage_artifact_name: coverage-build-${{ inputs.os }}-${{ inputs.compiler }}-${{ inputs.build_script }}-${{ inputs.build_type }}
1821

1922
jobs:
2023
build:
@@ -28,6 +31,9 @@ jobs:
2831
submodules: recursive
2932
ref: ${{ github.ref }}
3033

34+
- name: Setup compiler
35+
run: export CC=${{ inputs.compiler }}
36+
3137
- name: Install dependencies
3238
run: src/ci_scripts/ubuntu-deps.sh
3339

0 commit comments

Comments
 (0)