Skip to content

Commit

Permalink
windows / linux / testing
Browse files Browse the repository at this point in the history
  • Loading branch information
r3w0p committed May 29, 2024
1 parent 3ec3385 commit 26d20e6
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 17 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Linux

on:
push:
branches: [ "1.1.0" ]

env:
BUILD_TYPE: Release

jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Linux Clang
os: ubuntu-latest
compiler_cc: clang
compiler_cpp: clang++

- name: Linux GCC
os: ubuntu-latest
compiler_cc: gcc
compiler_cpp: g++

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install CMake and Ninja
uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.27.0" # use most recent 3.27.x version
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=${{matrix.compiler_cc}} CMAKE_CXX_COMPILER=${{matrix.compiler_cpp}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: CMake Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target caravan
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml → .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Testing

on:
push:
Expand All @@ -8,8 +8,8 @@ env:
BUILD_TYPE: Debug

jobs:
tests:
name: Tests
testing:
name: Testing
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
20 changes: 6 additions & 14 deletions .github/workflows/build.yml → .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build
name: Windows

on:
push:
branches: [ main ]
branches: [ "1.1.0" ]

env:
BUILD_TYPE: Release
Expand All @@ -14,18 +14,10 @@ jobs:
strategy:
matrix:
include:
- name: Linux GCC
os: ubuntu-latest
compiler_cc: gcc
compiler_cpp: g++

# Commented out due to seemingly unresolvable issue possibly caused by FTXUI:
# "Target "component" links to Threads::Threads but the target was not found."
#
#- name: MacOS Clang
# os: macos-latest
# compiler_c: clang
# compiler_cpp: clang++
- name: Windows Clang
os: windows-latest
compiler_cc: clang
compiler_cpp: clang++

- name: Windows GCC
os: windows-latest
Expand Down

0 comments on commit 26d20e6

Please sign in to comment.