[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: Tests | |
on: | |
pull_request: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
run_tests: | |
name: ${{ matrix.os }}, ${{ matrix.build_type }}, ${{ matrix.file_memory }}, ${{ matrix.config.cxx }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
file_memory: ["Dictionary"] | |
build_type: ["Debug", "Release"] | |
config: | |
- { cc: "gcc", cxx: "g++" } | |
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_sc_machine_submodule.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: Install dependencies (Ubuntu) | |
if: startswith(matrix.os, 'ubuntu') | |
run: cd ostis-web-platform/scripts && ./install_sc_machine_dependencies.sh --dev -cm | |
- name: Build all | |
run: cd ostis-web-platform/sc-machine/scripts && ./build_sc_machine.sh -cm && ./build_kb.sh | |
- name: Restore build caches | |
uses: hendrikmuhs/ccache-action@v1.2 | |
with: | |
key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.config.cxx }}-${{ matrix.build_type }}-${{ matrix.file_memory }} | |
- name: Build | |
id: run_cmake | |
env: | |
CC: ${{ matrix.config.cc }} | |
CXX: ${{ matrix.config.cxx }} | |
FILE_MEMORY: ${{ matrix.file_memory }} | |
BUILD_TYPE: ${{ matrix.build_type }} | |
COVERAGE: OFF | |
SANITIZER_TYPE: none | |
run: cd ostis-web-platform/sc-machine && scripts/ci/make-tests.sh | |
- name: Run tests | |
id: run_tests | |
run: cd ostis-web-platform/sc-machine && scripts/ci/run-tests.sh | |
- name: Run sc-component-manager | |
id: run_sc_component_manager | |
run: | | |
cd ostis-web-platform/sc-machine/scripts | |
./run_sc_component_manager.sh -c ../../ostis-web-platform.ini -b ../../repo.path |