From 49c13e81bcb49e4a70ee2603fbf4e883be43bc1e Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 3 Feb 2023 00:50:16 +0000 Subject: [ci] Update to actions/checkout@v3 to silence GitHub warnings Signed-off-by: Michael Brown --- .github/workflows/build.yml | 6 +++--- .github/workflows/coverity.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6dc577ef1..f8ba4e192 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Install packages @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Install packages @@ -55,7 +55,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Install packages diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 20634be42..d27eae11e 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download Coverity Scan run: | curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \ -- cgit v1.2.3-55-g7522 From 6c0335adf66cf58133ab2a1662d1b26f20000767 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 3 Feb 2023 20:08:16 +0000 Subject: [ci] Update to ubuntu-22.04 GitHub actions runner Signed-off-by: Michael Brown --- .github/workflows/build.yml | 6 +++--- .github/workflows/coverity.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8ba4e192..b6e18e310 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ jobs: x86: name: x86 - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Check out code uses: actions/checkout@v3 @@ -32,7 +32,7 @@ jobs: arm32: name: ARM32 - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Check out code uses: actions/checkout@v3 @@ -52,7 +52,7 @@ jobs: arm64: name: ARM64 - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Check out code uses: actions/checkout@v3 diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index d27eae11e..ba8681801 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -8,7 +8,7 @@ on: jobs: submit: name: Submit - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Check out code uses: actions/checkout@v3 -- cgit v1.2.3-55-g7522 From bfa5262f0e31fdee06ca7c3098e1f4f3fcb1ede7 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 6 Feb 2023 18:30:06 +0000 Subject: [ci] Cache downloaded packages for GitHub actions Speed up the "Install packages" step for each CI run by caching the downloaded packages in /var/cache/apt. Do not include libc6-dbg:i386 within the cache, since apt seems to complain if asked to download both gcc-aarch64-linux-gnu and libc6-dbg:i386 at the same time. Signed-off-by: Michael Brown --- .github/workflows/build.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6e18e310..72a1234b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,14 +4,45 @@ on: push jobs: + cache: + name: Cache + runs-on: ubuntu-22.04 + steps: + - name: Cache permissions + run: | + sudo chown $(id -un) /var/cache/apt/archives + - name: Cache packages + uses: actions/cache@v3 + with: + path: /var/cache/apt/archives/*.deb + key: apt-cache-${{ github.run_id }}-${{ github.run_attempt }} + restore-keys: | + apt-cache- + - name: Download packages + run: | + sudo apt update + sudo apt install -y -d -o Acquire::Retries=50 \ + mtools syslinux isolinux \ + libc6-dev-i386 valgrind \ + gcc-arm-none-eabi gcc-aarch64-linux-gnu + x86: name: x86 runs-on: ubuntu-22.04 + needs: cache steps: - name: Check out code uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Cache permissions + run: | + sudo chown $(id -un) /var/cache/apt/archives + - name: Cache packages + uses: actions/cache/restore@v3 + with: + path: /var/cache/apt/archives/*.deb + key: apt-cache-${{ github.run_id }}-${{ github.run_attempt }} - name: Install packages run: | sudo dpkg --add-architecture i386 @@ -33,11 +64,20 @@ jobs: arm32: name: ARM32 runs-on: ubuntu-22.04 + needs: cache steps: - name: Check out code uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Cache permissions + run: | + sudo chown $(id -un) /var/cache/apt/archives + - name: Cache packages + uses: actions/cache/restore@v3 + with: + path: /var/cache/apt/archives/*.deb + key: apt-cache-${{ github.run_id }}-${{ github.run_attempt }} - name: Install packages run: | sudo apt update @@ -53,11 +93,20 @@ jobs: arm64: name: ARM64 runs-on: ubuntu-22.04 + needs: cache steps: - name: Check out code uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Cache permissions + run: | + sudo chown $(id -un) /var/cache/apt/archives + - name: Cache packages + uses: actions/cache/restore@v3 + with: + path: /var/cache/apt/archives/*.deb + key: apt-cache-${{ github.run_id }}-${{ github.run_attempt }} - name: Install packages run: | sudo apt update -- cgit v1.2.3-55-g7522