Skip to content

Commit

Permalink
Set CC as well as CXX for Actions pipeline (#73)
Browse files Browse the repository at this point in the history
The build workflow specifies CXX=clang++, but not CC=clang.
This means CMake picks up GCC as the default C compiler.
Whilst we are not currently using C anywhere, this is inconsistent
so ensure to also set CC=clang in those cases
  • Loading branch information
bengaineyarm authored Feb 5, 2025
1 parent ffe7a4f commit 8ad66f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:

- name: Build layer_example
run: |
export CC=clang
export CXX=clang++
mkdir layer_example/build_rel
cd layer_example/build_rel
Expand All @@ -63,6 +64,7 @@ jobs:
- name: Build layer_gpu_support
run: |
export CC=clang
export CXX=clang++
mkdir layer_gpu_support/build_rel
cd layer_gpu_support/build_rel
Expand All @@ -71,6 +73,7 @@ jobs:
- name: Build layer_gpu_timeline
run: |
export CC=clang
export CXX=clang++
mkdir layer_gpu_timeline/build_rel
cd layer_gpu_timeline/build_rel
Expand All @@ -79,6 +82,7 @@ jobs:
- name: Build and run unit tests
run: |
export CC=clang
export CXX=clang++
mkdir build_unittest
cd build_unittest
Expand All @@ -97,6 +101,7 @@ jobs:

- name: Build layer_example
run: |
export CC=gcc
export CXX=g++
mkdir layer_example/build_rel
cd layer_example/build_rel
Expand All @@ -105,6 +110,7 @@ jobs:
- name: Build layer_gpu_support
run: |
export CC=gcc
export CXX=g++
mkdir layer_gpu_support/build_rel
cd layer_gpu_support/build_rel
Expand All @@ -113,6 +119,7 @@ jobs:
- name: Build layer_gpu_timeline
run: |
export CC=gcc
export CXX=g++
mkdir layer_gpu_timeline/build_rel
cd layer_gpu_timeline/build_rel
Expand Down

0 comments on commit 8ad66f4

Please sign in to comment.