@@ -35,23 +35,11 @@ jobs:
3535 - run : echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV
3636 - run : echo "BNGPATH=${GITHUB_WORKSPACE}/ThirdParty/BioNetGen-2.7.0" >> $GITHUB_ENV
3737
38- # sonar cloud
39- - run : echo "SONAR_SCANNER_VERSION=5.0.1.3006" >> $GITHUB_ENV
40- - run : echo "SONAR_SCANNER_HOME=${HOME}/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux" >> $GITHUB_ENV
41- - run : echo "SONAR_SCANNER_OPTS=-server" >> $GITHUB_ENV
42- - run : echo "${SONAR_SCANNER_HOME}/bin" >> $GITHUB_PATH
43- - run : echo "${HOME}/.sonar/build-wrapper-linux-x86" >> $GITHUB_PATH
44-
45- # TODO: add to ci image
46- - name : Install sonarcloud tools
47- run : |
48- sudo apt-get install nodejs curl unzip \
49- && curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip \
50- https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip \
51- && unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ \
52- && curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \
53- https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip \
54- && unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/ \
38+ - name : Set up Sonar tools
39+ uses : ./.github/actions/setup-sonar-tools
40+
41+ - name : Install apt dependencies
42+ uses : ./.github/actions/install-apt-dependencies
5543
5644 # install amici dependencies
5745 - name : apt
6048 && sudo apt-get install -y \
6149 cmake \
6250 g++ \
63- libatlas-base-dev \
64- libboost-serialization-dev \
65- libboost-chrono-dev \
66- libhdf5-serial-dev \
6751 python3-venv \
68- swig \
6952 lcov \
7053 libboost-math-dev
7154
0 commit comments