mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 03:21:04 +00:00
workflows: Add apt update before install
Add apt/apt-get updates before we do apt/apt-get installs to try and help with issues where we fail to fetch packages Co-authored-by: Fabiano Fidêncio <fidencio@northflank.com> Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
ef12dcd7da
commit
ccfdf59607
2
.github/workflows/add-pr-sizing-label.yaml
vendored
2
.github/workflows/add-pr-sizing-label.yaml
vendored
@ -48,6 +48,6 @@ jobs:
|
|||||||
pr=${{ github.event.number }}
|
pr=${{ github.event.number }}
|
||||||
# Removing man-db, workflow kept failing, fixes: #4480
|
# Removing man-db, workflow kept failing, fixes: #4480
|
||||||
sudo apt -y remove --purge man-db
|
sudo apt -y remove --purge man-db
|
||||||
sudo apt -y install diffstat patchutils
|
sudo apt update && sudo apt -y install diffstat patchutils
|
||||||
|
|
||||||
pr-add-size-label.sh -p "$pr"
|
pr-add-size-label.sh -p "$pr"
|
||||||
|
@ -81,11 +81,11 @@ jobs:
|
|||||||
./tests/install_rust.sh
|
./tests/install_rust.sh
|
||||||
echo "${HOME}/.cargo/bin" >> "$GITHUB_PATH"
|
echo "${HOME}/.cargo/bin" >> "$GITHUB_PATH"
|
||||||
if [ "$(uname -m)" == "x86_64" ] || [ "$(uname -m)" == "aarch64" ]; then
|
if [ "$(uname -m)" == "x86_64" ] || [ "$(uname -m)" == "aarch64" ]; then
|
||||||
sudo apt-get -y install musl-tools
|
sudo apt-get update && sudo apt-get -y install musl-tools
|
||||||
fi
|
fi
|
||||||
- name: Install devicemapper
|
- name: Install devicemapper
|
||||||
if: contains(matrix.component.needs, 'libdevmapper') && matrix.command == 'make check'
|
if: contains(matrix.component.needs, 'libdevmapper') && matrix.command == 'make check'
|
||||||
run: sudo apt-get -y install libdevmapper-dev
|
run: sudo apt-get update && sudo apt-get -y install libdevmapper-dev
|
||||||
- name: Install libseccomp
|
- name: Install libseccomp
|
||||||
if: contains(matrix.component.needs, 'libseccomp') && matrix.command != 'make vendor' && matrix.command != 'make check'
|
if: contains(matrix.component.needs, 'libseccomp') && matrix.command != 'make vendor' && matrix.command != 'make check'
|
||||||
run: |
|
run: |
|
||||||
@ -97,10 +97,10 @@ jobs:
|
|||||||
echo "LIBSECCOMP_LIB_PATH=${libseccomp_install_dir}/lib" >> "$GITHUB_ENV"
|
echo "LIBSECCOMP_LIB_PATH=${libseccomp_install_dir}/lib" >> "$GITHUB_ENV"
|
||||||
- name: Install protobuf-compiler
|
- name: Install protobuf-compiler
|
||||||
if: contains(matrix.component.needs, 'protobuf-compiler') && matrix.command != 'make vendor'
|
if: contains(matrix.component.needs, 'protobuf-compiler') && matrix.command != 'make vendor'
|
||||||
run: sudo apt-get -y install protobuf-compiler
|
run: sudo apt-get update && sudo apt-get -y install protobuf-compiler
|
||||||
- name: Install clang
|
- name: Install clang
|
||||||
if: contains(matrix.component.needs, 'clang') && matrix.command == 'make check'
|
if: contains(matrix.component.needs, 'clang') && matrix.command == 'make check'
|
||||||
run: sudo apt-get -y install clang
|
run: sudo apt-get update && sudo apt-get -y install clang
|
||||||
- name: Setup XDG_RUNTIME_DIR
|
- name: Setup XDG_RUNTIME_DIR
|
||||||
if: contains(matrix.component.needs, 'XDG_RUNTIME_DIR') && matrix.command != 'make check'
|
if: contains(matrix.component.needs, 'XDG_RUNTIME_DIR') && matrix.command != 'make check'
|
||||||
run: |
|
run: |
|
||||||
|
8
.github/workflows/build-checks.yaml
vendored
8
.github/workflows/build-checks.yaml
vendored
@ -87,11 +87,11 @@ jobs:
|
|||||||
./tests/install_rust.sh
|
./tests/install_rust.sh
|
||||||
echo "${HOME}/.cargo/bin" >> "$GITHUB_PATH"
|
echo "${HOME}/.cargo/bin" >> "$GITHUB_PATH"
|
||||||
if [ "$(uname -m)" == "x86_64" ] || [ "$(uname -m)" == "aarch64" ]; then
|
if [ "$(uname -m)" == "x86_64" ] || [ "$(uname -m)" == "aarch64" ]; then
|
||||||
sudo apt-get -y install musl-tools
|
sudo apt-get update && sudo apt-get -y install musl-tools
|
||||||
fi
|
fi
|
||||||
- name: Install devicemapper
|
- name: Install devicemapper
|
||||||
if: contains(matrix.component.needs, 'libdevmapper') && matrix.command == 'make check'
|
if: contains(matrix.component.needs, 'libdevmapper') && matrix.command == 'make check'
|
||||||
run: sudo apt-get -y install libdevmapper-dev
|
run: sudo apt-get update && sudo apt-get -y install libdevmapper-dev
|
||||||
- name: Install libseccomp
|
- name: Install libseccomp
|
||||||
if: contains(matrix.component.needs, 'libseccomp') && matrix.command != 'make vendor' && matrix.command != 'make check'
|
if: contains(matrix.component.needs, 'libseccomp') && matrix.command != 'make vendor' && matrix.command != 'make check'
|
||||||
run: |
|
run: |
|
||||||
@ -103,10 +103,10 @@ jobs:
|
|||||||
echo "LIBSECCOMP_LIB_PATH=${libseccomp_install_dir}/lib" >> "$GITHUB_ENV"
|
echo "LIBSECCOMP_LIB_PATH=${libseccomp_install_dir}/lib" >> "$GITHUB_ENV"
|
||||||
- name: Install protobuf-compiler
|
- name: Install protobuf-compiler
|
||||||
if: contains(matrix.component.needs, 'protobuf-compiler') && matrix.command != 'make vendor'
|
if: contains(matrix.component.needs, 'protobuf-compiler') && matrix.command != 'make vendor'
|
||||||
run: sudo apt-get -y install protobuf-compiler
|
run: sudo apt-get update && sudo apt-get -y install protobuf-compiler
|
||||||
- name: Install clang
|
- name: Install clang
|
||||||
if: contains(matrix.component.needs, 'clang') && matrix.command == 'make check'
|
if: contains(matrix.component.needs, 'clang') && matrix.command == 'make check'
|
||||||
run: sudo apt-get -y install clang
|
run: sudo apt-get update && sudo apt-get -y install clang
|
||||||
- name: Setup XDG_RUNTIME_DIR
|
- name: Setup XDG_RUNTIME_DIR
|
||||||
if: contains(matrix.component.needs, 'XDG_RUNTIME_DIR') && matrix.command != 'make check'
|
if: contains(matrix.component.needs, 'XDG_RUNTIME_DIR') && matrix.command != 'make check'
|
||||||
run: |
|
run: |
|
||||||
|
4
.github/workflows/static-checks.yaml
vendored
4
.github/workflows/static-checks.yaml
vendored
@ -70,7 +70,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install system deps
|
- name: Install system deps
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y build-essential musl-tools
|
sudo apt-get update && sudo apt-get install -y build-essential musl-tools
|
||||||
- name: Install yq
|
- name: Install yq
|
||||||
run: |
|
run: |
|
||||||
sudo -E ./ci/install_yq.sh
|
sudo -E ./ci/install_yq.sh
|
||||||
@ -118,7 +118,7 @@ jobs:
|
|||||||
echo "/usr/local/go/bin" >> "$GITHUB_PATH"
|
echo "/usr/local/go/bin" >> "$GITHUB_PATH"
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get -y install moreutils hunspell hunspell-en-gb hunspell-en-us pandoc
|
sudo apt-get update && sudo apt-get -y install moreutils hunspell hunspell-en-gb hunspell-en-us pandoc
|
||||||
- name: Run check
|
- name: Run check
|
||||||
run: |
|
run: |
|
||||||
export PATH="${PATH}:${GOPATH}/bin"
|
export PATH="${PATH}:${GOPATH}/bin"
|
||||||
|
Loading…
Reference in New Issue
Block a user