Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork323
merge: update translations#6745
This file contains hidden or 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 and Test | |
on: | |
pull_request: | |
push: | |
branches: | |
-'main' | |
-'devel/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
if:github.event.pull_request.draft == false | |
name:Build-${{ matrix.cfg.name }} | |
runs-on:ubuntu-latest | |
container:ghcr.io/neomutt/ubuntu | |
strategy: | |
# Limit jobs to one at a time so that ccache really helps later builds | |
max-parallel:1 | |
matrix: | |
cfg: | |
-name:default | |
options: | |
-name:disabled | |
options:--disable-nls --disable-pgp --disable-smime --ssl --gsasl | |
-name:everything | |
options:--autocrypt --bdb --fmemopen --gdbm --gnutls --gpgme --gss --kyotocabinet --lmdb --lua --lz4 --notmuch --pcre2 --qdbm --rocksdb --sasl --tdb --testing --tokyocabinet --with-lock=fcntl --zlib --zstd | |
steps: | |
-name:Get number of CPU cores | |
uses:SimenB/github-actions-cpu-cores@v2 | |
id:cpu-cores | |
-name:Checkout Code | |
uses:actions/checkout@v5 | |
-name:Checkout Test Files | |
uses:actions/checkout@v5 | |
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:| | |
mkdir build-${{ matrix.cfg.name }} | |
cd build-${{ matrix.cfg.name }} | |
../configure --full-doc ${{ matrix.cfg.options }} | |
-name:Build Neomutt | |
run:| | |
cd build-${{ matrix.cfg.name }} | |
make -j ${{steps.cpu-cores.outputs.count}} neomutt | |
-name:Neomutt Version | |
run:| | |
cd build-${{ matrix.cfg.name }} | |
./neomutt -v | |
./neomutt -h all | |
-name:Test Docs | |
run:| | |
cd build-${{ matrix.cfg.name }} | |
make validate-docs | |
-name:Build Tests | |
run:| | |
cd build-${{ matrix.cfg.name }} | |
make -j ${{steps.cpu-cores.outputs.count}} test/neomutt-test | |
-name:Run Tests | |
run:| | |
cd build-${{ matrix.cfg.name }} | |
export NEOMUTT_TEST_DIR=$GITHUB_WORKSPACE/test-files | |
make test | |