Skip to content

Update GitHub Actions to build and test to detect crashes #23

Update GitHub Actions to build and test to detect crashes

Update GitHub Actions to build and test to detect crashes #23

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clean build
run: make clean || true
# - name: Build (Debug)
# run: make BUILD_TYPE=debug
# - name: Run watchdog (Debug test)
# run: |
# timeout --preserve-status 600s ./processWatchdog > debug_watchdog_stdout.log 2> debug_watchdog_stderr.log
# cat debug_watchdog_stdout.log
# cat debug_watchdog_stderr.log
# - name: Clean
# run: make clean
- name: Build (Release)
run: make BUILD_TYPE=release
- name: Run watchdog (Release test)
run: |
timeout --preserve-status 600s ./processWatchdog > release_watchdog_stdout.log 2> release_watchdog_stderr.log
cat release_watchdog_stdout.log
cat release_watchdog_stderr.log