From: Jan Matyas Date: Fri, 23 Jul 2021 05:29:56 +0000 (+0200) Subject: .github/workflows: Add missing 'apt-get update' to the snapshot workflow X-Git-Tag: v0.12.0-rc1~608 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=9eefd630669f74508f056071eb28ac097cf6c75c .github/workflows: Add missing 'apt-get update' to the snapshot workflow During the build of the OpenOCD snapshot via GitHub Actions, ensure that the local package database is first updated, prior to installing any packages via apt-get install. Otherwise the apt-get install could fail. Change-Id: If3c29faeb1496d5e2be75350f6352575b1f3a42e Signed-off-by: Jan Matyas Reviewed-on: http://openocd.zylin.com/6378 Reviewed-by: Xiaofan Tested-by: jenkins Reviewed-by: Tarek BOCHKATI Reviewed-by: Tim Newsome Reviewed-by: Antonio Borneo --- diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 45db72e940..bde803cc4c 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -14,7 +14,9 @@ jobs: BUILD_DIR: ../build steps: - name: Install needed packages - run: sudo apt-get install autotools-dev autoconf automake libtool pkg-config cmake texinfo texlive g++-mingw-w64-i686 + run: | + sudo apt-get update + sudo apt-get install autotools-dev autoconf automake libtool pkg-config cmake texinfo texlive g++-mingw-w64-i686 - name: Checkout Code uses: actions/checkout@v1 - run: ./bootstrap