Skip to content

Commit

Permalink
Build and test on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Sep 30, 2024
1 parent b5d93a9 commit 88551cb
Showing 1 changed file with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,28 @@ env:
BUILD_TYPE: Debug

jobs:
build:
linux:
matrix:
compiler:
- { exe: g++, version: 14 }
- { exe: clang++, version: 18 }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Configure
env:
CXX: ${{matrix.compiler.exe}}-${{matrix.compiler.version}}
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DLIBHAT_SHARED_C_LIB=ON -DLIBHAT_TESTING=ON

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -R libhat_test_.*

windows:
strategy:
matrix:
target:
Expand All @@ -21,7 +42,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Configure CMake
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DLIBHAT_SHARED_C_LIB=ON -DLIBHAT_TESTING=ON -A ${{matrix.target.target}} -T ${{matrix.toolset}}

- name: Build
Expand Down

0 comments on commit 88551cb

Please sign in to comment.