-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (32 loc) · 1.02 KB
/
Copy pathc-cpp.yml
File metadata and controls
41 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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: |
echo "Running processWatchdog..."
timeout --signal=SIGUSR1 --preserve-status 600s ./processWatchdog > release_watchdog_stdout.log 2> release_watchdog_stderr.log
echo "Standard Output:"
cat release_watchdog_stdout.log
echo "Standard Error:"
cat release_watchdog_stderr.log