Skip to content

Commit

Permalink
Added multiple compilers to CI to check discrepancies between them
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Sep 5, 2024
1 parent e9bdb81 commit aafee5e
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
strategy:
matrix:
build-type: [Debug, Release]
c-compiler: [gcc, clang]
cxx-compiler: [g++, clang++]
exclude:
- c-compiler: gcc
cxx-compiler: clang++
- c-compiler: clang
cxx-compiler: g++
fail-fast: false
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
Expand All @@ -38,15 +45,25 @@ jobs:
with:
submodules: recursive
- name: install-dependencies
run: sudo apt-get install -y libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev
run: >-
sudo apt-get install -y
libxcursor-dev
libxrandr-dev
libxinerama-dev
libxi-dev
- name: setup-codeql
uses: github/codeql-action/init@v3
with:
languages: c-cpp
config: |
paths-ignore: [vendor]
- name: configure
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
run: >-
cmake
-B build
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
-DCMAKE_C_COMPILER=${{ matrix.c-compiler }}
-DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }}
- name: build
run: cmake --build build
- name: analyze
Expand Down

0 comments on commit aafee5e

Please sign in to comment.