CI actions: fix Ubuntu jobs with sanitizers (#2347)

See: https://github.com/actions/runner-images/issues/9491
This commit is contained in:
Ivan Nardi 2024-03-14 14:20:21 +01:00 committed by GitHub
parent 8fad77991d
commit 25c145f26d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,6 +207,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Fix kernel mmap rnd bits on Ubuntu
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.arch, 'x86_64')
run: |
# Workaround for compatinility between latest kernel and sanitizer
# See https://github.com/actions/runner-images/issues/9491
sudo sysctl vm.mmap_rnd_bits=28
- name: Install Ubuntu Prerequisites
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.arch, 'x86_64')
run: |