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 4f6ccbc
Showing 1 changed file with 29 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,34 @@ env:
BUILD_TYPE: Debug

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

- name: Install Compiler
run: |
sudo apt update
sudo apt install -y ${{matrix.compiler.pkg}}-${{matrix.compiler.version}}
- 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 +48,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 4f6ccbc

Please sign in to comment.