Skip to content

Minor changes in cmake and Encoder #486

Minor changes in cmake and Encoder

Minor changes in cmake and Encoder #486

Workflow file for this run

name: Run tests
on:
workflow_dispatch:
pull_request:
branches: [ development ]
concurrency:
group: tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build build-essential
- name: Cache simulator deps
uses: actions/cache@v4
with:
path: out/build/simulator/_deps
key: simulator-deps-${{ runner.os }}-${{ hashFiles('CMakeLists.txt', 'Tests/CMakeLists.txt') }}
restore-keys: |
simulator-deps-${{ runner.os }}-
- name: Configure (CMake)
run: |
cmake --preset simulator
- name: Build
run: |
cmake --build --preset simulator
- name: Run tests (ctest)
run: |
ctest --preset simulator-all
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: simulator-test-reports
path: |
out/build/simulator/Testing/Temporary/LastTest.log
retention-days: 7
if-no-files-found: ignore