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.
This commit is contained in:
Guðni Már Gilbert 2024-02-24 15:29:21 +00:00
parent c5a036d817
commit 704003295a
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@ jobs:
# setup base required dependencies # setup base required dependencies
- name: Setup dependencies - name: Setup dependencies
run: | run: |
sudo apt-get update
sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib 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 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@ -72,6 +73,7 @@ jobs:
# setup base required dependencies # setup base required dependencies
- name: Setup dependencies - name: Setup dependencies
run: | run: |
sudo apt-get update
sudo apt-get install gcc-11 g++11 lcov cmake ninja-build python3-pyelftools python3-regex python3-polib 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 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@ -119,6 +121,7 @@ jobs:
# setup base required dependencies # setup base required dependencies
- name: Setup dependencies - name: Setup dependencies
run: | run: |
sudo apt-get update
sudo apt-get install gcc-11 g++11 lcov cmake ninja-build python3-pyelftools python3-regex python3-polib 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 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it

View File

@ -18,6 +18,7 @@ jobs:
# setup base required dependencies # setup base required dependencies
- name: Setup dependencies - name: Setup dependencies
run: | run: |
sudo apt-get update
sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib
# build the base branch # build the base branch