Skip to content

Debug options

Debug options #4

Workflow file for this run

name: Debug options
on:
schedule:
- cron: '50 3 * * 1'
# Mondays at 03:50
workflow_dispatch:
jobs:
build:
name: ${{ matrix.cfg.name }}
runs-on: ubuntu-latest
container: ghcr.io/neomutt/ubuntu
continue-on-error: true
env:
CONFIGURE_OPTIONS: --autocrypt --bdb --full-doc --fmemopen --gdbm --gnutls --gpgme --gss --kyotocabinet --lmdb --lua --lz4 --notmuch --pcre2 --qdbm --rocksdb --sasl --tdb --tokyocabinet --with-lock=fcntl --zlib --zstd
strategy:
# Limit jobs to one at a time so that ccache really helps later builds
max-parallel: 1
matrix:
cfg:
- name: none
options:
- name: backtrace
options: --debug-backtrace
- name: color
options: --debug-color
- name: email
options: --debug-email
- name: graphviz
options: --debug-graphviz
- name: keymap
options: --debug-keymap
- name: notify
options: --debug-names
- name: notify
options: --debug-notify
- name: queue
options: --debug-queue
- name: window
options: --debug-window
- name: coverage
options: --coverage
- name: fuzzing
options: --fuzzing
extras: CC=clang-14 CXX=clang-14 fuzz
- name: all
options: --debug-backtrace --debug-color --debug-email --debug-graphviz --debug-keymap --debug-names --debug-notify --debug-queue --debug-window --coverage
steps:
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: Checkout Code
uses: actions/checkout@v4
- name: Checkout Test Files
uses: actions/checkout@v4
with:
repository: neomutt/neomutt-test-files
path: test-files
- name: Set Up Test Files
run: |
cd test-files
./setup.sh
- name: Compilation Cache
uses: hendrikmuhs/ccache-action@v1
- name: Configure Neomutt
run: ./configure --disable-doc ${{ matrix.cfg.options }}
- name: Build Neomutt
run: |
export PATH="$PATH:/usr/lib/llvm-10/bin"
make -j ${{steps.cpu-cores.outputs.count}} ${{ matrix.cfg.extras }}
- name: Neomutt Version
run: |
test -f neomutt && ./neomutt -v || :
- name: Build Tests
run: |
test -f neomutt && make -j ${{steps.cpu-cores.outputs.count}} test/neomutt-test || :
- name: Run Tests
run: |
export NEOMUTT_TEST_DIR=$GITHUB_WORKSPACE/test-files
test -f nemoutt && make test || :