Merge pull request #4399 from mfem/override #8
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
# Copyright (c) 2010-2024, Lawrence Livermore National Security, LLC. Produced | |
# at the Lawrence Livermore National Laboratory. All Rights reserved. See files | |
# LICENSE and NOTICE for details. LLNL-CODE-806117. | |
# | |
# This file is part of the MFEM library. For more information and source code | |
# availability visit https://mfem.org. | |
# | |
# MFEM is free software; you can redistribute it and/or modify it under the | |
# terms of the BSD-3 license. We welcome feedback and contributions, see file | |
# CONTRIBUTING.md for details. | |
name: "Sanitizer" | |
permissions: | |
actions: write | |
on: | |
push: | |
branches: | |
- master | |
- next | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
Serial: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Temporary workaround for sanitizer crashes | |
# See https://github.com/actions/runner-images/issues/9491 | |
# The issue should be fixed in the next runner image for Ubuntu 22.04, | |
# see https://github.com/actions/runner-images/pull/9513 | |
run: sudo sysctl vm.mmap_rnd_bits=28 | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.12.1 | |
with: | |
access_token: ${{ github.token }} | |
- name: MFEM Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: mfem | |
- name: MFEM Build | |
uses: mfem/github-actions/build-mfem@v2.5 | |
with: | |
os: ${{ runner.os }} | |
target: opt | |
mpi: seq | |
hypre-dir: unused-hypre-dir | |
metis-dir: unused-metis-dir | |
mfem-dir: mfem | |
build-system: make | |
library-only: false | |
config-options: | |
CXX="clang++-14" | |
CXXFLAGS="-g -O1 -std=c++11 | |
-fsanitize=address | |
-fno-omit-frame-pointer | |
-fsanitize-address-use-after-scope" | |
- name: MFEM Info | |
working-directory: mfem | |
run: make info | |
- name: MFEM Sanitize | |
working-directory: mfem | |
run: | |
ASAN_OPTIONS="detect_leaks=1, | |
strict_init_order=1, | |
strict_string_checks=1, | |
check_initialization_order=1, | |
detect_stack_use_after_return=1" | |
make test |