Skip to content

doit

doit #37

Workflow file for this run

---
name: CI workflow
"on": [push]
env:
CFLAGS: -fdiagnostics-color
jobs:
run-tests:
strategy:
matrix:
include:
- compiler: gcc
docs: true
sound: enabled
vapi: enabled
- compiler: gcc
docs: false
sound: disabled
vapi: disabled
- compiler: clang
docs: false
sound: enabled
vapi: disabled
runs-on: ubuntu-20.04
steps:
- name: install-deps
uses: awalsh128/[email protected]
with:
packages: |
bison
gstreamer1.0-plugins-bad
gstreamer1.0-plugins-good
gstreamer1.0-tools
gtk-doc-tools
libgirepository1.0-dev
libgstreamer1.0-dev
libgtk-3-dev
meson
texinfo
valac
- uses: actions/checkout@v2
- name: configure
run: |
CC=${{ matrix.compiler }} meson _build -Dgtk_doc=${{ matrix.docs }} \
-Dsound=${{ matrix.sound }} -Dvapi=${{ matrix.vapi }}
- name: build
run: ninja -C _build
- name: build-docs
if: matrix.docs
run: ninja -C _build chimara-doc
- name: test
run: xvfb-run -a meson test -C _build
- name: print-test-log
if: ${{ failure() }}
run: cat _build/meson-logs/testlog.txt
sanitizer:
runs-on: ubuntu-20.04
steps:
- name: install-deps
run: |
sudo apt-get update
sudo apt-get -y install \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-good \
gstreamer1.0-tools \
libgstreamer1.0-dev \
libgtk-3-0 \
libgtk-3-dev \
libxml2-utils \
meson \
ubuntu-dbgsym-keyring
- name: install-debug-symbols
run: |
sudo tee -a "/etc/apt/sources.list.d/ddebs.list" <<EOF
deb http://ddebs.ubuntu.com focal main universe
deb http://ddebs.ubuntu.com focal-updates main universe
EOF
sudo apt-get update
sudo apt-get install libgtk-3-0-dbgsym
- uses: actions/checkout@v2
- name: configure
run: |
meson _build \
-Db_sanitize=address,undefined \
-Dintrospection=false \
-Dbocfel=false \
-Dfrotz=false \
-Dnitfol=false \
-Dplayer=false
- name: build
run: ASAN_OPTIONS=start_deactivated=true,detect_leaks=0 ninja -C _build
- name: test
run: |
ASAN_OPTIONS=fast_unwind_on_malloc=0 \
LSAN_OPTIONS=suppressions=$(pwd)/tests/lsan.supp \
xvfb-run -a meson test -C _build
- name: print-test-log
if: ${{ failure() }}
run: cat _build/meson-logs/testlog.txt