88 branches :
99 - master
1010
11+ env :
12+ # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
13+ BUILD_TYPE : Release
14+
1115jobs :
1216 build :
1317
@@ -17,12 +21,32 @@ jobs:
1721 - uses : actions/checkout@v1
1822 - name : install deps
1923 run : |
20- apt-get install libssl-dev sqlite3 cmake
21- - name : cmake
22- run : cmake
23- - name : make
24- run : make
25- - name : make check
26- run : make check
27- - name : make distcheck
28- run : make distcheck
24+ sudo apt-get install libssl-dev sqlite3 cmake
25+
26+ - name : Create Build Environment
27+ # Some projects don't allow in-source building, so create a separate build directory
28+ # We'll use this as our working directory for all subsequent commands
29+ run : cmake -E make_directory ${{runner.workspace}}/build
30+
31+ - name : Configure CMake
32+ # Use a bash shell so we can use the same syntax for environment variable
33+ # access regardless of the host operating system
34+ shell : bash
35+ working-directory : ${{runner.workspace}}/build
36+ # Note the current convention is to use the -S and -B options here to specify source
37+ # and build directories, but this is only available with CMake 3.13 and higher.
38+ # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
39+ run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
40+
41+ - name : Build
42+ working-directory : ${{runner.workspace}}/build
43+ shell : bash
44+ # Execute the build. You can specify a specific target with "--target <NAME>"
45+ run : cmake --build . --config $BUILD_TYPE
46+
47+ - name : Test
48+ working-directory : ${{runner.workspace}}/build
49+ shell : bash
50+ # Execute tests defined by the CMake configuration.
51+ # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
52+ run : ctest -C $BUILD_TYPE
0 commit comments