Skip to content

Commit 2659706

Browse files
committed
GHA: D'oh
1 parent 28c7370 commit 2659706

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/build-linux.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,20 @@ jobs:
9191
- name: 'Cache sysroot'
9292
uses: actions/cache@v3
9393
with:
94-
path: sysroot-bullseye
95-
key: sysroot-bullseye-${{ runner.as }}
94+
path: sysroot-focal
95+
key: sysroot-focal-${{ runner.as }}
9696

9797
- name: 'Setup cross-compilation sysroot'
9898
run: |
9999
set -vx
100-
if [ ! -d sysroot-bullseye ]; then
101-
sudo debootstrap --arch=$(dpkg --print-architecture) bullseye sysroot-bullseye http://archive.ubuntu.com/ubuntu
100+
if [ ! -d sysroot-focal ]; then
101+
sudo debootstrap --arch=$(dpkg --print-architecture) focal sysroot-focal http://archive.ubuntu.com/ubuntu
102102
fi
103-
sudo chroot sysroot-bullseye apt-get update
104-
sudo chroot sysroot-bullseye apt-get install -y build-essential git wget curl sudo unzip zip openjdk-11-jdk 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 debian-archive-keyring
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 openjdk-11-jdk 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 debian-archive-keyring
105105
# If we really need gcc-10, we can get it from this PPA:
106-
sudo chroot sysroot-bullseye apt-get install -y software-properties-common
107-
sudo chroot sysroot-bullseye 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
108108
109109
- name: 'Checkout the JDK source'
110110
uses: actions/checkout@v3.6.0
@@ -157,10 +157,10 @@ jobs:
157157
--with-gtest=${{ steps.gtest.outputs.path }}
158158
--with-zlib=system
159159
--with-jmod-compress=zip-1
160-
--with-sysroot=$PWD/sysroot-bullseye
161-
--with-extra-cflags="--sysroot=$PWD/sysroot-bullseye"
162-
--with-extra-cxxflags="--sysroot=$PWD/sysroot-bullseye"
163-
--with-extra-ldflags="--sysroot=$PWD/sysroot-bullseye"
160+
--with-sysroot=$PWD/sysroot-focal
161+
--with-extra-cflags="--sysroot=$PWD/sysroot-focal"
162+
--with-extra-cxxflags="--sysroot=$PWD/sysroot-focal"
163+
--with-extra-ldflags="--sysroot=$PWD/sysroot-focal"
164164
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
165165
echo "Dumping config.log:" &&
166166
cat config.log &&

0 commit comments

Comments
 (0)