Skip to content

Commit 5631378

Browse files
Update cmake.yml
1 parent 8dad8f5 commit 5631378

1 file changed

Lines changed: 27 additions & 14 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,41 @@ permissions:
1515
contents: read # This is required for actions/checkout@v2
1616

1717
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
18+
build_centos7:
2219
container: kreisl/rootcpp17
2320
runs-on: ubuntu-latest
2421

2522
steps:
2623
- uses: actions/checkout@v2
27-
2824
- 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
3125
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-
3326
- name: Build
34-
# working-directory: ${{github.workspace}}/build
35-
# Build your program with the given configuration
3627
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
37-
3828
- 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
4229
run: cd ${{github.workspace}}/build && ctest -C ${{env.BUILD_TYPE}}
30+
31+
build_fedora35:
32+
container: rootproject/root:6.24.06-fedora35
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
- name: Configure CMake
37+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DAnalysisTreeQA_BUILD_TESTS=ON -DAnalysisTreeQA_BUNDLED_AT=ON
38+
- name: Build
39+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
40+
- name: Test
41+
run: cd ${{github.workspace}}/build && ctest -C ${{env.BUILD_TYPE}}
42+
43+
build_fedora34:
44+
container: rootproject/root:6.22.08-fedora34
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v2
48+
- name: Configure CMake
49+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DAnalysisTreeQA_BUILD_TESTS=ON -DAnalysisTreeQA_BUNDLED_AT=ON
50+
- name: Build
51+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
52+
- name: Test
53+
run: cd ${{github.workspace}}/build && ctest -C ${{env.BUILD_TYPE}}
54+
55+

0 commit comments

Comments
 (0)