File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CMake
2+
3+ on :
4+ push :
5+ branches : [ master, actions ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ env :
10+ # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
11+ BUILD_TYPE : Debug
12+
13+ permissions :
14+ id-token : write
15+ contents : read # This is required for actions/checkout@v2
16+
17+ jobs :
18+ build :
19+ # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
20+ # You can convert this to a matrix build if you need cross-platform coverage.
21+ # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
22+ container : kreisl/rootcpp17
23+ runs-on : ubuntu-latest
24+
25+ steps :
26+ - uses : actions/checkout@v2
27+
28+ - name : Configure CMake
29+ # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
30+ # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
31+ run : source /opt/rh/devtoolset-8/enable && cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DAnalysisTreeQA_BUILD_TESTS=ON -DAnalysisTreeQA_BUNDLED_AT=ON
32+
33+ - name : Build
34+ # working-directory: ${{github.workspace}}/build
35+ # Build your program with the given configuration
36+ run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
37+
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 : cd ${{github.workspace}}/build && ctest -C ${{env.BUILD_TYPE}}
Original file line number Diff line number Diff line change 1+ name : Doxygen Action
2+
3+ # Controls when the action will run. Triggers the workflow on push or pull request
4+ # events but only for the master branch
5+ on :
6+ push :
7+ branches : [ master ]
8+
9+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+ jobs :
11+ # This workflow contains a single job called "build"
12+ build :
13+ # The type of runner that the job will run on
14+ runs-on : ubuntu-latest
15+
16+ # Steps represent a sequence of tasks that will be executed as part of the job
17+ steps :
18+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+ - uses : actions/checkout@v2
20+
21+ - name : Doxygen Action
22+ uses : mattnotmitt/doxygen-action@v1.1.0
23+ with :
24+ # Path to Doxyfile
25+ doxyfile-path : " ./docs/Doxyfile.in" # default is ./Doxyfile
26+ # Working directory
27+ working-directory : " ." # default is .
28+
29+ - name : Deploy
30+ uses : peaceiris/actions-gh-pages@v3
31+ with :
32+ github_token : ${{ secrets.GITHUB_TOKEN }}
33+ # Default Doxyfile build documentation to html directory.
34+ # Change the directory if changes in Doxyfile
35+ publish_dir : ./Doxygen/html
You can’t perform that action at this time.
0 commit comments