Skip to content

Commit 911f16d

Browse files
committed
8257056: Submit workflow should apt-get update to avoid package installation errors
Reviewed-by: rwestberg, sgehwolf
1 parent b0bd0c2 commit 911f16d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/submit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ jobs:
168168

169169
- name: Install dependencies
170170
run: |
171+
sudo apt-get update
171172
sudo apt-get install gcc-10=10.2.0-5ubuntu1~20.04 g++-10=10.2.0-5ubuntu1~20.04 libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
172173
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
173174
@@ -478,6 +479,9 @@ jobs:
478479
build_jdk_root=`find ${HOME}/jdk-linux-x64/jdk-${{ env.JDK_VERSION }}-internal+0_linux-x64_bin -name release -type f`
479480
echo "build_jdk_root=`dirname ${build_jdk_root}`" >> $GITHUB_ENV
480481
482+
- name: Update apt
483+
run: sudo apt-get update
484+
481485
- name: Install native host dependencies
482486
run: |
483487
sudo apt-get install gcc-10=10.2.0-5ubuntu1~20.04 g++-10=10.2.0-5ubuntu1~20.04 libxrandr-dev libxtst-dev libcups2-dev libasound2-dev

0 commit comments

Comments
 (0)