From 6c1fce8825eb91e261fef2422d6e2ff41bf6ccb7 Mon Sep 17 00:00:00 2001 From: Patrick Ecker <36153377+eckerpatrick@users.noreply.github.com> Date: Mon, 11 Dec 2023 13:38:31 +0100 Subject: [PATCH] Test against multiple root versions (#128) * Update cmake.yml to test against multiple root versions --- .github/workflows/cmake.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 1cf9e5a3..f349447a 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -2,13 +2,14 @@ name: Build and Test on: [push, pull_request] -env: - ROOT_VERSION: root_v6.24.06.Linux-ubuntu20-x86_64-gcc9.3.tar.gz - jobs: build: runs-on: ubuntu-20.04 + strategy: + matrix: + ROOT_VERSION: [root_v6.24.06.Linux-ubuntu20-x86_64-gcc9.3.tar.gz, root_v6.30.02.Linux-ubuntu20.04-x86_64-gcc9.4.tar.gz] + steps: - uses: actions/checkout@v3 @@ -23,8 +24,8 @@ jobs: - name: Install root run: | - wget https://root.cern.ch/download/${ROOT_VERSION} - tar xzf ${ROOT_VERSION} + wget https://root.cern.ch/download/${{ matrix.ROOT_VERSION }} + tar xzf ${{ matrix.ROOT_VERSION }} source root/bin/thisroot.sh - name: Build GenFit @@ -39,5 +40,3 @@ jobs: source root/bin/thisroot.sh cd ${{github.workspace}}/../build ctest --output-on-failure - -