Skip to content

[ci] Fix ci workflow #114

[ci] Fix ci workflow

[ci] Fix ci workflow #114

Workflow file for this run

name: Sanitizers
on:
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
run_sanitizers:
name: ${{ matrix.config.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- {
name: "Sanitizer for sc-dictionary fs-storage - address",
os: ubuntu-latest,
file_memory: "Dictionary",
sanitizer: "address",
cc: clang,
cxx: clang++,
}
steps:
- name: Clone repositories
run: |
git clone https://github.com/ostis-ai/ostis-web-platform
cd ostis-web-platform
git checkout feature/update_component_manager_installation
git submodule update --init --recursive
cd scripts
./install_platform_with_component_manager.sh
./build_kb.sh
cd ../sc-machine
git checkout component_manager
cd sc-tools/sc-component-manager
git fetch origin pull/${{ github.event.number }}/head:pr
git checkout pr
- name: Restore build caches
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}-${{ matrix.config.os}}-${{ matrix.config.cxx }}-${{ matrix.config.build_type }}-${{ matrix.config.file_memory }}
- name: Build
id: run_cmake
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
FILE_MEMORY: ${{ matrix.config.file_memory }}
BUILD_TYPE: ${{ matrix.config.build_type }}
COVERAGE: OFF
SANITIZER_TYPE: ${{ matrix.config.sanitizer }}
run: cd sc-machine && ./scripts/ci/make-tests.sh
- name: Run tests
id: run_tests
run: cd sc-machine && ./scripts/ci/run-tests.sh