Skip to content

Commit e09ad1b

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

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/tooling.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ 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
51+
python3.9 -m pip install -U pip
52+
python3.9 -m pip install -U numpy
5353
sudo .github/workflows/dependencies/install_spack
5454
- name: Build
5555
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 +58,8 @@ jobs:
5858
spack install
5959
SOURCEPATH="$(pwd)"
6060
share/openPMD/download_samples.sh build
61+
python3.9 -m venv env
62+
source env/bin/activate
6163
export LDFLAGS="${LDFLAGS} -fsanitize=address,undefined -shared-libsan"
6264
export CXXFLAGS="${CXXFLAGS} -fsanitize=address,undefined -shared-libsan"
6365
cmake -S . -B build \
@@ -66,6 +68,7 @@ jobs:
6668
-DopenPMD_USE_HDF5=ON \
6769
-DopenPMD_USE_ADIOS2=ON \
6870
-DopenPMD_USE_INVASIVE_TESTS=ON \
71+
-DPython_EXECUTABLE="$(which python)" \
6972
-DCMAKE_VERBOSE_MAKEFILE=ON
7073
cmake --build build --parallel 2
7174
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)