Skip to content

Commit

Permalink
chore: use bubblewrap as in setup-melange action
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardomaraschini committed Nov 15, 2024
1 parent 6313c56 commit cf08b21
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/actions/build-custom-melange-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ runs:
go-version: '1.23'
cache: true

# 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: install latest melange binary
shell: bash
run: |
Expand All @@ -67,7 +83,6 @@ runs:
- name: build melange package
shell: bash
run: |
sudo apt install bubblewrap -y
mkdir -p build
melange keygen melange.rsa
melange build ${{ inputs.context }}/melange.yaml --arch ${{ inputs.arch }}
Expand Down

0 comments on commit cf08b21

Please sign in to comment.