From c404b7dc91fdffb45a61be20929837a558bd0eb0 Mon Sep 17 00:00:00 2001 From: Ricardo Maraschini Date: Fri, 15 Nov 2024 10:58:51 +0100 Subject: [PATCH] chore: install bubblewrap --- .../build-custom-melange-package/action.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/actions/build-custom-melange-package/action.yml b/.github/actions/build-custom-melange-package/action.yml index b5b4f7561f..5595d34404 100644 --- a/.github/actions/build-custom-melange-package/action.yml +++ b/.github/actions/build-custom-melange-package/action.yml @@ -56,6 +56,22 @@ runs: sudo apt install -y make make melange + # TODO: the bubblewrap package available from "apt install" + # is outdated and missing newer features such as --clearenv flag, + # so instead we download the wolfi .apk and use the binary in there + - name: 'Install dependencies (bubblewrap)' + shell: bash + run: | + sudo apt install -y libcap-dev meson ninja-build + git clone https://github.com/containers/bubblewrap + pushd bubblewrap + meson --prefix=/usr -Drequire_userns=true . output + cd output + ninja + sudo ninja install + popd + rm -rf bubblewrap + - name: build melange package shell: bash run: |