Skip to content

Commit

Permalink
Update cmake.yml
Browse files Browse the repository at this point in the history
Fix Asan crash
  • Loading branch information
usatiuk authored Mar 18, 2024
1 parent e996e93 commit 10d570f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: apt-get update && apt-get install -y sudo
if: env.ACT=='true'

- name: Fix kernel mmap rnd bits
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
# high-entropy ASLR in much newer kernels that GitHub runners are
# using leading to random crashes: https://reviews.llvm.org/D148280
run: sudo sysctl vm.mmap_rnd_bits=28
if: env.ACT!='true'

- name: install everything
run: sudo apt-get update && sudo apt-get install -y fuse libfuse-dev cmake build-essential gcc g++ libssl-dev zlib1g-dev
Expand Down

0 comments on commit 10d570f

Please sign in to comment.