Skip to content

Commit

Permalink
workflow #1
Browse files Browse the repository at this point in the history
  • Loading branch information
r3w0p committed May 19, 2024
1 parent 4b345ab commit 5c8d981
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,26 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- name: Linux GCC
os: ubuntu-latest
compiler: g++

- name: Linux Clang
os: ubuntu-latest
compiler: clang++

- name: MacOS Clang
os: macos-latest
compiler: clang++

- name: Windows GCC
os: windows-latest
compiler: g++

- name: Windows MSVC
os: windows-latest
compiler: cl

steps:
- name: Checkout
Expand All @@ -26,7 +45,7 @@ jobs:
ninjaVersion: "^1.0" # use most recent 1.x version

- name: CMake Setup
run: cmake -S . -B ${{github.workspace}}/build -G Ninja -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
run: cmake -S . -B ${{github.workspace}}/build -G Ninja -D CMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: CMake Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target caravan
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
# ---

include_directories(include)

# --- caravan libraries
include_directories(include)

add_library(controller
"include/caravan/controller/controller.h"

Expand Down Expand Up @@ -93,7 +94,6 @@ target_link_libraries(caravan
PRIVATE model
PRIVATE user
PRIVATE view
PRIVATE ftxui::screen
PRIVATE ftxui::dom
PRIVATE ftxui::component
)
Expand Down

0 comments on commit 5c8d981

Please sign in to comment.