From 52ef15b22c3bd4359f632b0aedd37a89b4301742 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 7 Feb 2024 23:17:22 +0100 Subject: [PATCH] Bump GitHub Actions versions and use Go 1.22 and 1.21 * Use latest macOS and Windows versions instead of referring to an outdated version that might be removed later. See the table at https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories * Use the `stable` and `oldstable` aliases instead of hard-coding specific point releases for `actions/setup-go`. The arm64 builder is using a Docker image, so use the `1.22` image tag. We can use the `latest` tag in the future to avoid having to update the version. * Bump `github/codeql-action` actions to v3 as v2 is deprecated: https://github.com/github/codeql-action?tab=readme-ov-file#supported-versions-of-the-codeql-action * Bump Go version in go.mod to the minimum Go version supported by Go. --- .github/workflows/ci-actions.yml | 38 +++++++++++------------ go.mod | 2 +- pke/kyber/internal/common/asm/go.mod | 2 +- sign/dilithium/internal/common/asm/go.mod | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci-actions.yml b/.github/workflows/ci-actions.yml index 9ea681219..7406a727c 100644 --- a/.github/workflows/ci-actions.yml +++ b/.github/workflows/ci-actions.yml @@ -13,14 +13,14 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - GOVER: ['1.21.1', '1.20.8'] + GOVER: ['stable', 'oldstable'] steps: - name: Setup Go-${{ matrix.GOVER }} - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.GOVER }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Linting uses: golangci/golangci-lint-action@v3 with: @@ -47,9 +47,9 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - CFG: [[arm64, arm64v8, '1.21.1']] + CFG: [[arm64, arm64v8, '1.22']] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Enabling Docker Experimental run: | echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json @@ -68,11 +68,11 @@ jobs: name: Testing Build Modes steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: '1.21.1' + go-version: 'stable' - name: Build as Static run: make circl_static - name: Build as Plugin @@ -84,15 +84,15 @@ jobs: name: amd64/coverage steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: '1.21.1' + go-version: 'stable' - name: Produce Coverage run: go test -coverprofile=./coverage.txt ./... - name: Upload Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 with: file: ./coverage.txt osCompat: @@ -101,14 +101,14 @@ jobs: name: Running on ${{ matrix.os }} strategy: matrix: - os: [macos-11, windows-2019] + os: [macos-latest, windows-latest] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: '1.21.1' + go-version: 'stable' - name: Building run: go build -v ./... - name: Testing @@ -123,12 +123,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: go - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: "/language:go" diff --git a/go.mod b/go.mod index 84646127f..c58932dce 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cloudflare/circl -go 1.19 +go 1.21 require ( github.com/bwesterb/go-ristretto v1.2.3 diff --git a/pke/kyber/internal/common/asm/go.mod b/pke/kyber/internal/common/asm/go.mod index f9d224ac2..ed620578f 100644 --- a/pke/kyber/internal/common/asm/go.mod +++ b/pke/kyber/internal/common/asm/go.mod @@ -1,6 +1,6 @@ module github.com/cloudflare/circl/pke/kyber/internal/common/asm -go 1.19 +go 1.21 require ( github.com/cloudflare/circl v1.3.7 diff --git a/sign/dilithium/internal/common/asm/go.mod b/sign/dilithium/internal/common/asm/go.mod index 709c8d6c5..5638957e6 100644 --- a/sign/dilithium/internal/common/asm/go.mod +++ b/sign/dilithium/internal/common/asm/go.mod @@ -1,6 +1,6 @@ module github.com/cloudflare/circl/sign/dilithium/internal/common/asm -go 1.19 +go 1.21 require ( github.com/cloudflare/circl v1.3.7