From a73967898a02ef9f3f0cda1404ce031cb07119eb Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Thu, 13 Feb 2025 13:24:25 +0100 Subject: [PATCH] ci: use ubuntu-latest Signed-off-by: Sebastien Binet --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e121694c..360b66cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: strategy: matrix: go-version: [1.23.x, 1.22.x] - platform: [ubuntu-20.04, macos-latest, windows-latest] + platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: - name: Install Go @@ -50,7 +50,7 @@ jobs: fetch-depth: 1 - name: Install Linux packages - if: matrix.platform == 'ubuntu-20.04' + if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -qq gcc pkg-config libwayland-dev libx11-dev libx11-xcb-dev libxkbcommon-x11-dev libgles2-mesa-dev libegl1-mesa-dev libffi-dev libxcursor-dev libvulkan-dev xvfb xdotool @@ -59,11 +59,11 @@ jobs: root.exe --version - name: Build-Linux-32b - if: matrix.platform == 'ubuntu-20.04' + if: matrix.platform == 'ubuntu-latest' run: | GOARCH=386 go install -v $TAGS,cross_compile ./... - name: Build-Linux-64b - if: matrix.platform == 'ubuntu-20.04' + if: matrix.platform == 'ubuntu-latest' run: | GOARCH=amd64 go install -v $TAGS ./... - name: Build-Windows @@ -75,7 +75,7 @@ jobs: run: | go install -v $TAGS ./... - name: Test Linux - if: matrix.platform == 'ubuntu-20.04' + if: matrix.platform == 'ubuntu-latest' run: | go run ./ci/run-tests.go $TAGS -race $COVERAGE go vet $TAGS ./... @@ -96,5 +96,5 @@ jobs: cache-key: ${{ matrix.platform }} version: "2024.1.1" - name: Upload-Coverage - if: matrix.platform == 'ubuntu-20.04' + if: matrix.platform == 'ubuntu-latest' uses: codecov/codecov-action@v3