1717
1818 strategy :
1919 matrix :
20- os : [ubuntu-20.04, macos-11]
20+ os : [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12 ]
2121 cmake_build_type : [Release, Debug]
2222
2323 fail-fast : false
@@ -29,19 +29,21 @@ jobs:
2929 fetch-depth : 1
3030
3131 - name : dependency (ubuntu)
32- if : matrix.os != 'macos-11'
32+ if : ${{ startsWith( matrix.os, 'ubuntu') }}
3333 run : |
34+ VERSION_ID=$(bash -c 'source /etc/os-release ; echo $VERSION_ID')
35+ if [ "20.04" == "$VERSION_ID" ] ; then CLANG_TIDY_VERSION=10 ; else CLANG_TIDY_VERSION=14 ; fi
3436 sudo apt-get -qqy update
3537 sudo apt-get -qy install \
36- sudo curl git build-essential make cmake libc6-dev gcc-10 g++-10 \
37- clang-tidy-10 \
38+ sudo curl git build-essential make cmake libc6-dev gcc g++ \
39+ clang-tidy-${CLANG_TIDY_VERSION} \
3840 python3 python3-dev python3-venv
39- sudo ln -s "$(which clang-tidy-10 )" "$(dirname $(which clang-tidy-10 ))/clang-tidy"
41+ sudo ln -s "$(which clang-tidy-${CLANG_TIDY_VERSION} )" "$(dirname $(which clang-tidy-${CLANG_TIDY_VERSION} ))/clang-tidy"
4042 sudo pip3 install setuptools
4143 sudo pip3 install numpy pytest flake8
4244
4345 - name : dependency (macos)
44- if : matrix.os == 'macos-11'
46+ if : ${{ startsWith( matrix.os, 'macos') }}
4547 run : |
4648 brew install python3 llvm
4749 ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"
0 commit comments