Skip to content

Commit

Permalink
feat: use mutliple compilers for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SMASTER4 committed Aug 17, 2024
1 parent 72b89d1 commit 407570f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-for-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ env:

jobs:
build:
strategy:
matrix:
c_compiler: [gcc, clang]

runs-on: ubuntu-latest

steps:
Expand All @@ -22,9 +26,11 @@ jobs:
sudo apt-get install -y libgtk-4-dev
- name: Configure CMake
env:
CC: ${{matrix.compiler}}
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
# Build your program with the given configuration
env:
CC: ${{matrix.compiler}}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

0 comments on commit 407570f

Please sign in to comment.