From e7754b7c3bdb827ff8ce089eea384deccf50ae65 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 6 Dec 2023 21:10:22 -0800 Subject: [PATCH] Use actions/setup-go@v4 for Linux build job Unfortunately the latest v5 version of the actions/setup-go action used to set up the Go programming language in the runner machine has a dependency on a higher version of glibc than is provided by the Linux container. For this reason, the workflow is configured to use actions/setup-go@v4 for the Linux build job. We will receive pull requests from Dependabot offering to update this outdated action dependency for at each subsequent major version release of the action (which are not terribly frequent). We must decline the bump of the action in that specific step, but accept the bumps of all other usages of the action in the workflows. Dependabot remembers when you decline a bump so this should not be too bothersome. --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 18cc87a2..a73935c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -307,10 +307,18 @@ jobs: python-version: '3.11.x' - name: Install Go + if: fromJSON(matrix.config.container) == null uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + - name: Install Go + # actions/setup-go@v5 has dependency on a higher version of glibc than available in the Linux container. + if: fromJSON(matrix.config.container) != null + uses: actions/setup-go@v4 + with: + go-version: ${{ env.GO_VERSION }} + - name: Install Taskfile uses: arduino/setup-task@v1 with: