Aaaaand always run it. #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 gsettings-desktop-schemas yelp-tools intltool autopoint valgrind aspell-en xvfb \ | |
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 | |
- 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 | |
# File not found: '/home/runner/work/_actions/test-summary/action/<...>/index.js' | |
#- name: Test Summary | |
# uses: test-summary/action@98d5ecd2de9823412dd12a2d1e02fb954284f4c3 | |
# if: always() | |
# with: | |
# paths: /tmp/*.tap | |
# output: test_summary.md | |
- uses: pcolby/tap-summary@v1.1 | |
if: always() | |
with: | |
path: /tmp/*.tap | |
summary-file: test_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 | |
test_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/*.tap | |
/tmp/record.* | |
- name: Output test results | |
if: always() | |
run: cat test_summary.md >> $GITHUB_STEP_SUMMARY |