From 704003295a9a7a240ac942d8dcff30f54820d62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sat, 24 Feb 2024 15:29:21 +0000 Subject: [PATCH] CI: Add sudo apt-get update See: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/customizing-github-hosted-runners#installing-software-on-ubuntu-runners > Note: Always run sudo apt-get update before installing a package. In case the apt index is stale, this command fetches and re-indexes any available packages, which helps prevent package installation failures. --- .github/workflows/build.yml | 3 +++ .github/workflows/pr-size.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc86a15667..10f103d873 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,7 @@ jobs: # setup base required dependencies - name: Setup dependencies run: | + sudo apt-get update sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -72,6 +73,7 @@ jobs: # setup base required dependencies - name: Setup dependencies run: | + sudo apt-get update sudo apt-get install gcc-11 g++11 lcov cmake ninja-build python3-pyelftools python3-regex python3-polib # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -119,6 +121,7 @@ jobs: # setup base required dependencies - name: Setup dependencies run: | + sudo apt-get update sudo apt-get install gcc-11 g++11 lcov cmake ninja-build python3-pyelftools python3-regex python3-polib # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it diff --git a/.github/workflows/pr-size.yml b/.github/workflows/pr-size.yml index fcb9e5ea88..8cf9f83b02 100644 --- a/.github/workflows/pr-size.yml +++ b/.github/workflows/pr-size.yml @@ -18,6 +18,7 @@ jobs: # setup base required dependencies - name: Setup dependencies run: | + sudo apt-get update sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib # build the base branch