Skip to content

Commit

Permalink
Fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jfantinhardesty committed Jun 7, 2024
1 parent 6499ce1 commit 44b9adb
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
push:
branches: [ "main", "add-github-actions" ]
pull_request:
branches: [ "main", "add-github-actions" ]
branches: [ "main" ]

jobs:
build:
Expand All @@ -27,10 +27,16 @@ jobs:
build_type: [Release]
c_compiler: [gcc, clang]
include:
- os: ubuntu-latest
- os: ubuntu-22.04
c_compiler: gcc
cpp_compiler: g++
- os: ubuntu-22.04
c_compiler: clang
cpp_compiler: clang++
- os: ubuntu-20.04
c_compiler: gcc
cpp_compiler: g++
- os: ubuntu-latest
- os: ubuntu-20.04
c_compiler: clang
cpp_compiler: clang++

Expand All @@ -39,9 +45,7 @@ jobs:

- name: Build using CMake
run: >
./build_samples.sh
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
./build_samples.sh
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
--no-tests

0 comments on commit 44b9adb

Please sign in to comment.