From 66f71ea4d50568614d75659771d1415ed836b937 Mon Sep 17 00:00:00 2001 From: Austin Vazquez Date: Sat, 10 Dec 2022 20:57:59 +0000 Subject: [PATCH] Enable GitHub Actions local Linux CI runs Sync package index and automatic yes to apt repository prompts. Signed-off-by: Austin Vazquez --- .github/workflows/ci.yml | 3 ++- .github/workflows/nightly.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9fde2625..828ed6971 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -462,6 +462,7 @@ jobs: env: RUNC_FLAVOR: ${{ matrix.runc }} run: | + sudo apt-get update sudo apt-get install -y gperf libbtrfs-dev script/setup/install-seccomp script/setup/install-runc @@ -471,7 +472,7 @@ jobs: - name: Install criu run: | - sudo add-apt-repository ppa:criu/ppa + sudo add-apt-repository -y ppa:criu/ppa sudo apt-get update sudo apt-get install -y criu diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 25ac07cec..7f9bcaec5 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -43,8 +43,8 @@ jobs: - name: Install dependencies run: | - sudo add-apt-repository "deb [arch=arm64,s390x,ppc64el,riscv64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc) main" || true - sudo add-apt-repository "deb [arch=arm64,s390x,ppc64el,riscv64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc)-updates main" || true + sudo add-apt-repository -y "deb [arch=arm64,s390x,ppc64el,riscv64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc) main" || true + sudo add-apt-repository -y "deb [arch=arm64,s390x,ppc64el,riscv64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc)-updates main" || true sudo dpkg --add-architecture arm64 sudo dpkg --add-architecture s390x