Skip to content

Commit 2443ca6

Browse files
committed
fixup! GHA: Try using a sysroot instead of a container
1 parent 0df744d commit 2443ca6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-linux.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ jobs:
101101
run: |
102102
set -vx
103103
if [ ! -d sysroot-focal ]; then
104-
sudo debootstrap --arch=$(dpkg --print-architecture) --foreign focal sysroot-focal http://archive.ubuntu.com/ubuntu
104+
sudo debootstrap --arch=$(dpkg --print-architecture) focal sysroot-focal http://archive.ubuntu.com/ubuntu
105105
fi
106-
sudo chroot sysroot-focal ${PWD}/sysroot-focal/$(which apt-get) update
107-
sudo chroot sysroot-focal ${PWD}/sysroot-focal/$(which 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
106+
sudo chroot sysroot-focal apt-get update
107+
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
108108
# If we really need gcc-10, we can get it from this PPA:
109-
sudo chroot sysroot-focal ${PWD}/sysroot-focal/$(which apt-get) install -y software-properties-common
110-
sudo chroot sysroot-focal ${PWD}/sysroot-focal/$(which sudo) add-apt-repository ppa:ubuntu-toolchain-r/test
109+
sudo chroot sysroot-focal apt-get install -y software-properties-common
110+
sudo chroot sysroot-focal sudo add-apt-repository ppa:ubuntu-toolchain-r/test
111111
# So the OpenJDK configuration and build can use the sysroot
112112
sudo chown -R $USER:$USER sysroot-focal
113113

0 commit comments

Comments
 (0)