lua: fix lua_mutt_call() #21
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: ASAN Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
- 'devel/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: ASAN Build | |
runs-on: ubuntu-latest | |
container: ghcr.io/neomutt/ubuntu | |
env: | |
ASAN_OPTIONS: detect_leaks=1:color=never:log_path=asan:print_legend=false:print_summary=false | |
CONFIGURE_OPTIONS: --asan --autocrypt --bdb --full-doc --gdbm --gnutls --gpgme --gss --kyotocabinet --lmdb --lua --lz4 --notmuch --qdbm --sasl --tdb --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@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 $CONFIGURE_OPTIONS | |
- name: Build Tests | |
run: make -j ${{steps.cpu-cores.outputs.count}} test/neomutt-test | |
- name: Run Tests | |
run: | | |
export ASAN_OPTIONS="$ASAN_OPTIONS" | |
export NEOMUTT_TEST_DIR="$GITHUB_WORKSPACE/test-files" | |
make test | |
- name: Upload ASAN Log | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: asan-log | |
path: ${{ github.workspace }}/asan.* | |
retention-days: 10 | |
if-no-files-found: ignore | |