-
Notifications
You must be signed in to change notification settings - Fork 13
72 lines (61 loc) · 1.88 KB
/
build.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Build
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update -y
sudo apt upgrade -y
sudo apt install -y gdb gtk-doc-tools libglib2.0-dev libgsf-1-dev libgtk-3-dev libclutter-1.0-dev libclutter-gtk-1.0-dev libgirepository1.0-dev gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-alsa libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgudev-1.0-dev liborc-dev libasound2-dev check libfluidsynth-dev libxml2-utils libgstreamer1.0-dev libglib2.0-dev libunwind-dev yelp-tools intltool autopoint valgrind aspell-en xvfb
- name: autogen.sh
run: |
./autogen.sh --noconfigure
- name: configure
run: |
./configure --enable-coverage --enable-gtk-doc --enable-man
- name: make
run: |
make V=1
- name: make check
id: check
run: |
make -k check
- name: Rerun failed tests under gdb and get backtraces
id: rerun_tests
if: always() && steps.check.outcome == 'failure'
run: |
cat ./bt_edit.log ./test-suite.log
scripts/gdbtests.sh ./test-suite.log
- uses: pcolby/tap-summary@v1
if: always()
with:
paths: |
/tmp/*.log.tap
summary-file: tap_summary.md
- uses: actions/upload-artifact@v4
if: always() && steps.check.outcome == 'failure' && steps.rerun_tests.outcome == 'success'
with:
path: |
*.log
!config.log
tests/*.log
tap_summary.md
bml.tar.bz2
bt_cmd.tar.bz2
bt_core.tar.bz2
bt_edit.tar.bz2
bt_gst.tar.bz2
bt_ic.tar.bz2
/tmp/record.*