Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Sep 30, 2024
1 parent 811e10c commit de5200e
Showing 1 changed file with 53 additions and 53 deletions.
106 changes: 53 additions & 53 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
name: CMake

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
BUILD_TYPE: Debug
BUILD_TYPE: Debug

jobs:
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 -j 4

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

windows:
strategy:
matrix:
target: [Win32, x64]
toolset: [ v143, ClangCL ]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

- 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}} -T ${{matrix.toolset}}

- name: Build
run: cmake --build ${{github.workspace}}/build -j 4

- name: Test
working-directory: ${{github.workspace}}/build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\${{matrix.target == 'Win32' && 'vcvars32' || 'vcvars64'}}.bat"
ctest -C ${{env.BUILD_TYPE}} -R libhat_test_.*
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 -j 4

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

windows:
strategy:
matrix:
target: [ Win32, x64 ]
toolset: [ v143, ClangCL ]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

- 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}} -T ${{matrix.toolset}}

- name: Build
run: cmake --build ${{github.workspace}}/build -j 4

- name: Test
working-directory: ${{github.workspace}}/build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\${{matrix.target == 'Win32' && 'vcvars32' || 'vcvars64'}}.bat"
ctest -C ${{env.BUILD_TYPE}} -R libhat_test_.*

0 comments on commit de5200e

Please sign in to comment.