[ci] Fix ci workflow #114
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: 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 |