From c52d090522f58fc6e09649cbb3cf1dfa9c2fc8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 25 Jul 2023 20:37:54 +0200 Subject: [PATCH] gha: static-checks: Move to the Azure instances MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GHA runners are not exactly powerful, which makes the static-checks take way too long (almost an hour). Let's give a try and move those to the same size of Azure instances used as part of our CI, and probably have this time reduced. Fixes: #7446 Signed-off-by: Fabiano FidĂȘncio --- .github/workflows/static-checks.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static-checks.yaml b/.github/workflows/static-checks.yaml index 23f11aab3e..76ea53de61 100644 --- a/.github/workflows/static-checks.yaml +++ b/.github/workflows/static-checks.yaml @@ -13,7 +13,7 @@ concurrency: name: Static checks jobs: static-checks: - runs-on: ubuntu-20.04 + runs-on: garm-ubuntu-2004 strategy: matrix: cmd: @@ -36,6 +36,10 @@ jobs: with: fetch-depth: 0 path: ./src/github.com/${{ github.repository }} + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends build-essential haveged - name: Install Go uses: actions/setup-go@v3 with: @@ -82,4 +86,6 @@ jobs: - name: Run check if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }} run: | + export PATH=$PATH:"$HOME/.cargo/bin" + export XDG_RUNTIME_DIR=$(mktemp -d /tmp/kata-tests-$USER.XXX | tee >(xargs chmod 0700)) cd ${GOPATH}/src/github.com/${{ github.repository }} && ${{ matrix.cmd }}