Skip to content

tracing: adding protocol serializers #944

tracing: adding protocol serializers

tracing: adding protocol serializers #944

Workflow file for this run

name: cmake
on:
push:
branches:
- 'main'
- 'dev**'
pull_request:
branches:
- 'main'
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
systemc: [2.3.0a, 2.3.1a, 2.3.2, 2.3.3, 2.3.4, 3.0.0]
os: [ubuntu-20.04, ubuntu-22.04]
include:
- systemc: 2.3.3
os: self-hosted-ubuntu-22.04-arm64
name: SystemC ${{matrix.systemc}} - ${{matrix.os}}
env:
SYSTEMC_HOME: ${{github.workspace}}/systemc/${{matrix.systemc}}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup Dependencies
if: contains(matrix.os, 'self-hosted') == false
run: |
sudo apt-get update -y -qq
sudo apt-get install libelf-dev libsdl2-dev liblua5.3-dev libvncserver-dev libslirp-dev libusb-1.0-0-dev ninja-build
- name: Cache SystemC
id: cache-systemc
uses: actions/cache@v4
with:
path: ${{github.workspace}}/systemc
key: cache-systemc-${{matrix.systemc}}-${{runner.arch}}-${{matrix.os}}
- name: Download SystemC
if: steps.cache-systemc.outputs.cache-hit != 'true'
run: ./utils/setup-systemc -p ${{github.workspace}} -v ${{matrix.systemc}}
- name: Configure
run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DVCML_BUILD_TESTS=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j $(nproc)
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure