From de5200e772451fd5a31fff62b95973bdd343eee1 Mon Sep 17 00:00:00 2001 From: Brady Date: Mon, 30 Sep 2024 15:11:11 -0500 Subject: [PATCH] Fix formatting --- .github/workflows/cmake.yml | 106 ++++++++++++++++++------------------ 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index f506037..8bdf26f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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_.*