From 2a47c27339ba0ae24d5867f747a635d0b8852bf3 Mon Sep 17 00:00:00 2001 From: Daniel Maslowski Date: Fri, 20 Sep 2024 16:59:50 +0200 Subject: [PATCH] CI: upgrade actions, print Go version Keeping actions on a recent version is necessary because older ones are deprecated over time and would at some point error. We have seen such errors already, so this upgrades all actions. Also drop the GO111MODULE env var. Go has changed. Signed-off-by: Daniel Maslowski --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af96c78..773a020 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,6 @@ jobs: env: # Setup $GOPATH GOPATH: ${{ github.workspace }}/go - # Turn off modules because they are broken. - GO111MODULE: off # Run the build for each one of these configurations in parallel. strategy: @@ -69,12 +67,12 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can # access it. - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # We need this newer version of Go. - name: Go version - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: '^1.17.6' + go-version: '1.21' - name: Install dependent packages run: | set -ex @@ -90,13 +88,14 @@ jobs: - name: Make ${{ matrix.mainboard }} kernel run: | set -ex + go version cd mainboards PATH=$GOPATH/bin:/usr/local/go/bin:$PATH cd $(echo ${{ matrix.mainboard }} | tr '-' '/') make fetch make flashkernel - name: Upload Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.mainboard }} path: |