🐛 Fixed CI build
This commit is contained in:
12
.github/workflows/sonarcloud.yml
vendored
12
.github/workflows/sonarcloud.yml
vendored
@ -45,20 +45,18 @@ jobs:
|
||||
uses: actions/cache@v3.2.6
|
||||
with:
|
||||
key: conan-linux-${{ hashFiles('conanfile.txt') }}
|
||||
path: ~/.conan/
|
||||
path: ~/.conan2/
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
curl "https://raw.githubusercontent.com/AnotherFoxGuy/ci-scripts/main/install-cmake.sh" | sudo bash
|
||||
curl "https://raw.githubusercontent.com/AnotherFoxGuy/ci-scripts/main/install-conan.sh" | sudo bash
|
||||
curl "https://raw.githubusercontent.com/AnotherFoxGuy/ci-scripts/main/install-conan2.0.sh" | sudo bash
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
conan profile new --detect --force default
|
||||
conan profile update conf.tools.cmake.cmaketoolchain:generator="Ninja" default
|
||||
conan profile update settings.compiler.libcxx=libstdc++11 default
|
||||
conan profile detect --force
|
||||
conan install . -s build_type=Release -b missing -pr:b=default
|
||||
cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST=ON -DENABLE_COVERAGE=ON -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake"
|
||||
cmake --preset conan-release -DBUILD_TEST=ON -DENABLE_COVERAGE=ON
|
||||
|
||||
- name: Run build-wrapper
|
||||
run: build-wrapper-linux-x86-64 --out-dir bw-output make -j4
|
||||
@ -77,4 +75,4 @@ jobs:
|
||||
run: ./run-sonar-scanner
|
||||
|
||||
- name: Clean Conan pkgs
|
||||
run: conan remove "*" -fsb
|
||||
run: conan cache clean "*" -sbd
|
Reference in New Issue
Block a user