Skip to content

Commit 51faa54

Browse files
committed
fix: ci
1 parent c66dd4f commit 51faa54

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/cmake-single-platform.yml

+17-15
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ name: CMake on a single platform
44

55
on:
66
push:
7-
branches: [ "main" ]
7+
branches: ["main"]
88
paths-ignore:
99
- "**/*.md"
1010
pull_request:
11-
branches: [ "main" ]
11+
branches: ["main"]
1212
paths-ignore:
1313
- "**/*.md"
1414

@@ -24,20 +24,22 @@ jobs:
2424
runs-on: ubuntu-latest
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v3
2828

29-
- name: Configure CMake
30-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
31-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
32-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
29+
- name: Install Boost
30+
run: sudo apt-get update && sudo apt-get install libboost-all-dev
3331

34-
- name: Build
35-
# Build your program with the given configuration
36-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
32+
- name: Configure CMake
33+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
34+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
35+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
3736

38-
- name: Test
39-
working-directory: ${{github.workspace}}/build
40-
# Execute tests defined by the CMake configuration.
41-
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
42-
run: ctest -C ${{env.BUILD_TYPE}}
37+
- name: Build
38+
# Build your program with the given configuration
39+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
4340

41+
- name: Test
42+
working-directory: ${{github.workspace}}/build
43+
# Execute tests defined by the CMake configuration.
44+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
45+
run: ctest -C ${{env.BUILD_TYPE}}

0 commit comments

Comments
 (0)