Skip to content

Commit bac91a0

Browse files
committed
Try python3.9 for ASAN UBSAN run
with venv
1 parent 09fc3d9 commit bac91a0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/tooling.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ jobs:
4747
- name: Install
4848
run: |
4949
sudo apt-get update
50-
sudo apt-get install clang-10 libc++-dev libc++abi-dev python3 gfortran libopenmpi-dev
51-
python3 -m pip install -U pip
52-
python3 -m pip install -U numpy
50+
sudo apt-get install clang-10 libc++-dev libc++abi-dev python3.9 python3.9-dev python3.9-venv gfortran libopenmpi-dev
5351
sudo .github/workflows/dependencies/install_spack
5452
- name: Build
5553
env: {CC: mpicc, CXX: mpic++, OMPI_CC: clang-10, OMPI_CXX: clang++-10, CXXFLAGS: -Werror, OPENPMD_HDF5_CHUNKS: none, OPENPMD_TEST_NFILES_MAX: 100}
@@ -58,6 +56,9 @@ jobs:
5856
spack install
5957
SOURCEPATH="$(pwd)"
6058
share/openPMD/download_samples.sh build
59+
python3.9 -m venv env
60+
source env/bin/activate
61+
pip install numpy
6162
export LDFLAGS="${LDFLAGS} -fsanitize=address,undefined -shared-libsan"
6263
export CXXFLAGS="${CXXFLAGS} -fsanitize=address,undefined -shared-libsan"
6364
cmake -S . -B build \
@@ -66,6 +67,7 @@ jobs:
6667
-DopenPMD_USE_HDF5=ON \
6768
-DopenPMD_USE_ADIOS2=ON \
6869
-DopenPMD_USE_INVASIVE_TESTS=ON \
70+
-DPython_EXECUTABLE="$(which python)" \
6971
-DCMAKE_VERBOSE_MAKEFILE=ON
7072
cmake --build build --parallel 2
7173
export ASAN_OPTIONS=detect_stack_use_after_return=1:detect_leaks=1:check_initialization_order=true:strict_init_order=true:detect_stack_use_after_scope=1:fast_unwind_on_malloc=0

0 commit comments

Comments
 (0)