Skip to content

Commit

Permalink
Add gcc build
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Apr 21, 2024
1 parent e14d4a7 commit d35bcd0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ env:
CMAKE_GENERATOR: Ninja

jobs:
clang:
name: Clang
build:
name: Linux ${{ matrix.compiler.name }}
runs-on: ubuntu-22.04
strategy:
matrix:
compiler:
[
{ name: "GCC", cc: "gcc", cxx: "g++" },
{ name: "Clang", cc: "clang-18", cxx: "clang++-18" },
]
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -29,6 +37,7 @@ jobs:
sudo apt install -y ninja-build cmake mesa-utils freeglut3-dev
- name: Install LLVM
if: matrix.compiler.name == 'Clang'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
Expand All @@ -46,8 +55,8 @@ jobs:
-B build
-G Ninja
-D CMAKE_BUILD_TYPE=Release
-D CMAKE_C_COMPILER="clang-18"
-D CMAKE_CXX_COMPILER="clang++-18"
-D CMAKE_C_COMPILER="${{ matrix.compiler.cc }}"
-D CMAKE_CXX_COMPILER="${{ matrix.compiler.cxx }}"
-D CMAKE_PROJECT_TOP_LEVEL_INCLUDES=external/cmake-conan/conan_provider.cmake
-D CONAN_INSTALL_ARGS="--build=missing;-c tools.system.package_manager:mode=install;-c tools.system.package_manager:sudo=True"
Expand Down

0 comments on commit d35bcd0

Please sign in to comment.