From 2f43e46818d19ebc21b6ed23aa933806ab3e3b94 Mon Sep 17 00:00:00 2001 From: Junxiao Shi Date: Fri, 30 Aug 2024 20:34:14 +0000 Subject: [PATCH] Upgrade to actions/setup-go@v5 and macos-12~14 --- .github/workflows/build.yml | 12 ++++++------ .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/test.yml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f486310..a65312d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,17 +11,17 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, ubuntu-22.04, - macos-11, macos-12, + os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, + macos-12, macos-13, macos-14, windows-2019, windows-2022] fail-fast: false steps: + - name: Checkout repository + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: "^1.20" - - name: Checkout repository - uses: actions/checkout@v3 + go-version-file: go.mod - name: Build without cgo run: make env: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b726b13..51217bf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cef51bd..8da5b2b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,11 +13,11 @@ jobs: fail-fast: false steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Go imports check uses: zjkmxy/golang-github-actions@v1.1.3 with: