-
Notifications
You must be signed in to change notification settings - Fork 61
38 lines (33 loc) · 856 Bytes
/
ccpp.yml
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
name: Build and test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: run build and test
run: |
sudo apt-get install -y gdb
ulimit -c unlimited -S
git submodule update --init --recursive
mkdir build
cd build
cmake ..
cmake --build .
./testr
COREFILE=$(find . -maxdepth 3 -name "core*" | head -n 1)
if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" testr -ex "thread apply all bt" -ex "set pagination 0" -batch; fi
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: builds and logs
path: |
build
!build/**/*.o
!build/Makefile*