[ci] Add dependency between changelog and build-conan ci #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests (Conan) | |
on: | |
pull_request: | |
branches: [main] | |
workflow_call: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
run_tests: | |
name: Conan build | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { cc: "gcc", cxx: "g++" } | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Restore ccache caches | |
uses: hendrikmuhs/ccache-action@v1.2 | |
with: | |
key: ${{ github.job }} | |
- name: Conan cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.conan/data | |
key: conan-${{ runner.os }}-${{ hashFiles('**/conanfile.py') }} | |
- name: apt cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
/var/cache/apt/ | |
/var/lib/apt/ | |
key: apt-${{ runner.os }}-${{ github.job }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- name: Set up pipx | |
run: | | |
python -m pip install --user pipx | |
python -m pipx ensurepath | |
- name: Set up Conan | |
run: | | |
pipx install cmake | |
pipx install conan | |
- name: Install compilers | |
run: sudo apt install build-essential ninja-build | |
- name: Set Conan remote | |
run: | | |
conan profile detect | |
conan remote add ostis-ai https://conan.ostis.net/artifactory/api/conan/ostis-ai-sc-machine/ | |
- name: Install sc-machine | |
run: conan install . --build=missing | |
- name: Build scp-machine with tests | |
id: run_cmake | |
run: | | |
cmake --preset release-with-tests-conan | |
cmake --build --preset release | |
- name: Run scp-machine tests | |
id: run_tests | |
run: cd build/Release && ctest -V |