<commit_before>name: CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    
    steps:

    - name: Prepare
      run: |
        sudo apt-get update
        sudo apt-get install libsox-dev

    - name: Checkout
      uses: actions/checkout@v2-beta

    - name: Configure
      run: |
        mkdir build
        cd build
        cmake -DCMAKE_BUILD_TYPE=Debug -DESM_PLATFORM=test -DESM_BOARD=native ..

    - name: Build
      run: cmake --build build

    - name: Run
      run: |
        cd build
        touch /tmp/esm
        timeout 15s apps/blink/blink &
        cat /tmp/esm > blink.data
        time timeout 10s apps/dpp/dpp &
        cat /tmp/esm > dpp.data
        time timeout 10s apps/smokers/smokers &
        cat /tmp/esm > smokers.data
<commit_msg>Small CI workflow update - added trace decoding step<commit_after>name: CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    
    steps:

    - name: Prepare
      run: |
        sudo apt-get update
        sudo apt-get install libsox-dev

    - name: Checkout
      uses: actions/checkout@v2-beta

    - name: Configure
      run: |
        mkdir build
        cd build
        cmake -DCMAKE_BUILD_TYPE=Debug -DESM_PLATFORM=test -DESM_BOARD=native ..

    - name: Build
      run: cmake --build build

    - name: Run
      run: |
        cd build
        set -ex
        wget https://github.com/mryndzionek/trace-decoder/releases/download/v1.0/trace-decoder
        chmod +x trace-decoder
        apps/blink/blink &
        sleep 1
        cat /tmp/esm > blink.data
        ./trace-decoder -i file -m ../apps/blink/include/signals.h blink.data +RTS -N2 > blink.log
        apps/dpp/dpp &
        sleep 1
        cat /tmp/esm > dpp.data
        ./trace-decoder -i file -m ../apps/dpp/include/signals.h dpp.data +RTS -N2 > dpp.log
        apps/smokers/smokers &
        sleep 1
        cat /tmp/esm > smokers.data
        ./trace-decoder -i file -m ../apps/smokers/include/signals.h smokers.data +RTS -N2 > smokers.log
        ls -lh

{'fraction_non_alphanumeric': 0.10267857142857142, 'fraction_numerical': 0.007936507936507936, 'mean_word_length': 1.6366013071895424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5869161', 'n_tokens_mistral': 750, 'n_tokens_neox': 686, 'n_words': 173}