Skip to content

Commit

Permalink
chore: Define clang as the compiler on pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLe0 authored Sep 20, 2024
1 parent a8c6f17 commit 44abbc5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Run Test
name: Build & Run Test - Clang

on:
push:
Expand All @@ -8,6 +8,8 @@ on:

env:
BUILD_TYPE: Release
C_COMPILER: clang
CPP_COMPILER: clang++

jobs:
build:
Expand All @@ -18,7 +20,11 @@ jobs:

- name: Configure CMake
working-directory: ${{github.workspace}}/build
run: cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
run: >
cmake ..
-DCMAKE_CXX_COMPILER=$${{env.CPP_COMPILER}}
-DCMAKE_C_COMPILER=${{env.C_COMPILER}}
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
working-directory: ${{github.workspace}}/build
Expand Down

0 comments on commit 44abbc5

Please sign in to comment.