From 26d20e69dbbc075d3b6a72d709602d0cf7902cd2 Mon Sep 17 00:00:00 2001 From: r3w0p Date: Wed, 29 May 2024 13:16:10 +0100 Subject: [PATCH] windows / linux / testing --- .github/workflows/linux.yml | 41 ++++++++++++++++++++ .github/workflows/{tests.yml => testing.yml} | 6 +-- .github/workflows/{build.yml => windows.yml} | 20 +++------- 3 files changed, 50 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/linux.yml rename .github/workflows/{tests.yml => testing.yml} (95%) rename .github/workflows/{build.yml => windows.yml} (65%) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..1f0f524 --- /dev/null +++ b/.github/workflows/linux.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/testing.yml similarity index 95% rename from .github/workflows/tests.yml rename to .github/workflows/testing.yml index 53e555c..f88620c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/testing.yml @@ -1,4 +1,4 @@ -name: Tests +name: Testing on: push: @@ -8,8 +8,8 @@ env: BUILD_TYPE: Debug jobs: - tests: - name: Tests + testing: + name: Testing runs-on: ${{ matrix.os }} strategy: matrix: diff --git a/.github/workflows/build.yml b/.github/workflows/windows.yml similarity index 65% rename from .github/workflows/build.yml rename to .github/workflows/windows.yml index b12aff6..6443710 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/windows.yml @@ -1,8 +1,8 @@ -name: Build +name: Windows on: push: - branches: [ main ] + branches: [ "1.1.0" ] env: BUILD_TYPE: Release @@ -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