@@ -4,11 +4,11 @@ name: CMake on a single platform
4
4
5
5
on :
6
6
push :
7
- branches : [ "main" ]
7
+ branches : ["main"]
8
8
paths-ignore :
9
9
- " **/*.md"
10
10
pull_request :
11
- branches : [ "main" ]
11
+ branches : ["main"]
12
12
paths-ignore :
13
13
- " **/*.md"
14
14
@@ -24,20 +24,22 @@ jobs:
24
24
runs-on : ubuntu-latest
25
25
26
26
steps :
27
- - uses : actions/checkout@v3
27
+ - uses : actions/checkout@v3
28
28
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
33
31
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}}
37
36
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}}
43
40
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