bootstrap: remove all system gnupg/patchelf executables (#47165)

This commit is contained in:
Harmen Stoppels 2024-10-24 08:56:42 +02:00 committed by Harmen Stoppels
parent 4741ea683c
commit d8b73331f6

View File

@ -83,14 +83,12 @@ jobs:
steps: steps:
- name: Setup macOS - name: Setup macOS
if: ${{ matrix.runner != 'ubuntu-latest' }} if: ${{ matrix.runner != 'ubuntu-latest' }}
run: brew install tree gawk
- name: Remove system executables
run: | run: |
brew install tree while [ -n "$(command -v gpg gpg2 patchelf)" ]; do
# Remove GnuPG since we want to bootstrap it sudo rm $(command -v gpg gpg2 patchelf)
sudo rm -rf /usr/local/bin/gpg done
- name: Setup Ubuntu
if: ${{ matrix.runner == 'ubuntu-latest' }}
run: |
sudo rm -rf $(which gpg) $(which gpg2) $(which patchelf)
- name: Checkout - name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
with: with:
@ -112,14 +110,12 @@ jobs:
steps: steps:
- name: Setup macOS - name: Setup macOS
if: ${{ matrix.runner != 'ubuntu-latest' }} if: ${{ matrix.runner != 'ubuntu-latest' }}
run: brew install tree
- name: Remove system executables
run: | run: |
brew install tree while [ -n "$(command -v gpg gpg2 patchelf)" ]; do
# Remove GnuPG since we want to bootstrap it sudo rm $(command -v gpg gpg2 patchelf)
sudo rm -rf /usr/local/bin/gpg done
- name: Setup Ubuntu
if: ${{ matrix.runner == 'ubuntu-latest' }}
run: |
sudo rm -rf $(which gpg) $(which gpg2) $(which patchelf)
- name: Checkout - name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
with: with: