Skip to content

Commit e6c7999

Browse files
committed
GHA: Back to sudo instead
1 parent c567c37 commit e6c7999

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build-linux.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,14 @@ jobs:
9898
run: |
9999
set -vx
100100
if [ ! -d sysroot-focal ]; then
101-
fakechroot fakeroot debootstrap --arch=$(dpkg --print-architecture) focal sysroot-focal http://archive.ubuntu.com/ubuntu
101+
sudo debootstrap --arch=$(dpkg --print-architecture) --foreign focal sysroot-focal http://archive.ubuntu.com/ubuntu
102102
fi
103-
fakechroot fakeroot chroot sysroot-focal apt-get update
104-
fakechroot fakeroot chroot sysroot-focal apt-get install -y build-essential git wget curl sudo unzip zip autoconf libfreetype6-dev libcups2-dev libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev libasound2-dev libffi-dev file binutils libfontconfig-dev
103+
sudo chroot sysroot-focal apt-get update
104+
sudo chroot sysroot-focal apt-get install -y build-essential git wget curl sudo unzip zip autoconf libfreetype6-dev libcups2-dev libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev libasound2-dev libffi-dev file binutils libfontconfig-dev
105105
# If we really need gcc-10, we can get it from this PPA:
106-
fakechroot fakeroot chroot sysroot-focal apt-get install -y software-properties-common
107-
fakechroot fakeroot chroot sysroot-focal sudo add-apt-repository ppa:ubuntu-toolchain-r/test
106+
sudo chroot sysroot-focal apt-get install -y software-properties-common
107+
sudo chroot sysroot-focal sudo add-apt-repository ppa:ubuntu-toolchain-r/test
108+
sudo chown -R $USER:$USER sysroot-bullseye
108109
109110
- name: 'Checkout the JDK source'
110111
uses: actions/checkout@v3.6.0

0 commit comments

Comments
 (0)