Skip to content

Commit d044376

Browse files
authored
Add clang on linux GHA (#298)
1 parent 721e3b5 commit d044376

1 file changed

Lines changed: 34 additions & 1 deletion

File tree

.github/workflows/wsl.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ permissions:
2929
contents: read
3030

3131
jobs:
32-
build:
32+
buildgcc:
3333
runs-on: ubuntu-latest
3434

3535
strategy:
@@ -62,3 +62,36 @@ jobs:
6262
- name: 'Build'
6363
working-directory: ${{ github.workspace }}/Tests
6464
run: cmake --build out/build/${{ matrix.build_type }}
65+
66+
buildclang:
67+
runs-on: ubuntu-latest
68+
69+
strategy:
70+
fail-fast: false
71+
72+
matrix:
73+
build_type: [x64-Debug-Linux, x64-Release-Linux]
74+
clang: [16, 17, 18]
75+
76+
steps:
77+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
78+
79+
- name: Clone test repository
80+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
81+
with:
82+
repository: walbourn/directxmathtest
83+
path: Tests
84+
ref: main
85+
86+
- uses: seanmiddleditch/gha-setup-ninja@3b1f8f94a2f8254bd26914c4ab9474d4f0015f67 # v6
87+
88+
- name: 'Configure CMake'
89+
working-directory: ${{ github.workspace }}/Tests
90+
run: cmake --preset=${{ matrix.build_type }}
91+
env:
92+
CC: clang-${{ matrix.clang }}
93+
CXX: clang++-${{ matrix.clang }}
94+
95+
- name: 'Build'
96+
working-directory: ${{ github.workspace }}/Tests
97+
run: cmake --build out/build/${{ matrix.build_type }}

0 commit comments

Comments
 (0)