From 83de0d8550cc79a76be09da2b3c5698bce60eec8 Mon Sep 17 00:00:00 2001 From: tempate Date: Mon, 18 Mar 2024 15:45:02 +0100 Subject: [PATCH 1/2] Set the number of random bits for mmap to 28 Signed-off-by: tempate --- ubuntu/colcon_build/action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ubuntu/colcon_build/action.yml b/ubuntu/colcon_build/action.yml index e4929c7e..2e18ad97 100644 --- a/ubuntu/colcon_build/action.yml +++ b/ubuntu/colcon_build/action.yml @@ -50,6 +50,9 @@ runs: - name: Build workspace with colcon run: | + # https://github.com/actions/runner-images/issues/9491 + sudo sysctl vm.mmap_rnd_bits=28 + echo "::group::Compile using colcon ${{ inputs.workspace }}" if [[ ! -z "${{ inputs.workspace_dependencies }}" ]]; then From 6fc3f742ba1151e0ebf9686448b0a0ce2d7853eb Mon Sep 17 00:00:00 2001 From: tempate Date: Mon, 18 Mar 2024 15:53:31 +0100 Subject: [PATCH 2/2] Unset the number of random bits for mmap Signed-off-by: tempate --- ubuntu/colcon_build/action.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/ubuntu/colcon_build/action.yml b/ubuntu/colcon_build/action.yml index 2e18ad97..e4929c7e 100644 --- a/ubuntu/colcon_build/action.yml +++ b/ubuntu/colcon_build/action.yml @@ -50,9 +50,6 @@ runs: - name: Build workspace with colcon run: | - # https://github.com/actions/runner-images/issues/9491 - sudo sysctl vm.mmap_rnd_bits=28 - echo "::group::Compile using colcon ${{ inputs.workspace }}" if [[ ! -z "${{ inputs.workspace_dependencies }}" ]]; then