Skip to content

Commit

Permalink
workflows: Fix sanitizers on Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkuhn committed Mar 14, 2024
1 parent bcdff63 commit 3b46f73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ jobs:
with:
persist-credentials: false
show-progress: false
- name: Fix mmap_rnd_bits
if: ${{ matrix.os.dist == 'ubuntu-22.04' }}
# FIXME https://github.com/actions/runner-images/issues/9491
run: |
sudo sysctl vm.mmap_rnd_bits=28
- name: Clean up system packages
# We need to remove glib-network, otherwise libproxy might cause crashes.
run: |
Expand Down Expand Up @@ -395,6 +400,10 @@ jobs:
with:
persist-credentials: false
show-progress: false
- name: Fix mmap_rnd_bits
# FIXME https://github.com/actions/runner-images/issues/9491
run: |
sudo sysctl vm.mmap_rnd_bits=28
- name: Cache dependencies
id: cache
uses: actions/cache@v4
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fi

case "${MODE}" in
release)
# shellcheck disable=SC2086
meson setup --prefix="${GITHUB_WORKSPACE}/julea-install" --buildtype=release --werror ${GDBM_PREFIX} bld
ninja -C bld
ninja -C bld install
Expand All @@ -42,10 +43,12 @@ case "${MODE}" in
then
CLANG_LUNDEF='-Db_lundef=false'
fi
# shellcheck disable=SC2086
meson setup -Db_sanitize=address,undefined ${CLANG_LUNDEF} ${GDBM_PREFIX} bld
ninja -C bld
;;
coverage)
# shellcheck disable=SC2086
meson setup -Db_coverage=true -Db_sanitize=address,undefined ${GDBM_PREFIX} bld
ninja -C bld
;;
Expand Down

0 comments on commit 3b46f73

Please sign in to comment.