Skip to content

Commit

Permalink
Bump GitHub Actions versions and use Go 1.22 and 1.21
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Lekensteyn committed Feb 7, 2024
1 parent 2535e92 commit 52ef15b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cloudflare/circl

go 1.19
go 1.21

require (
github.com/bwesterb/go-ristretto v1.2.3
Expand Down
2 changes: 1 addition & 1 deletion pke/kyber/internal/common/asm/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion sign/dilithium/internal/common/asm/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 52ef15b

Please sign in to comment.