Skip to content

Commit 8031ce4

Browse files
authored
build: update runner and go version (#531)
* build: update runner and go version * build: fix new gosec linter * build: update go.mod * Revert "build: fix new gosec linter" This reverts commit fe7f39d. * build: update linter and github actions stuff * fix previous commit * fix: linter errors * fix: more linter stuff * fix: more linter stuff
1 parent ff4c0dd commit 8031ce4

File tree

79 files changed

+935
-434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+935
-434
lines changed

.github/workflows/pr.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
with:
1010
fetch-depth: 0
1111
- name: install Go
12-
uses: actions/setup-go@v4
12+
uses: actions/setup-go@v5
1313
with:
14-
go-version: 1.21.x
14+
go-version: 1.23.x
1515

1616
- name: install deps
1717
run: go install golang.org/x/tools/cmd/goimports@latest && go install github.com/klauspost/asmfmt/cmd/asmfmt@latest
@@ -30,14 +30,13 @@ jobs:
3030
find . -type f -name '*.go' -exec sed -i 's/Code generated by .* DO NOT EDIT/FOO/g' {} \;
3131
# on macos: find . -type f -name '*.go' -exec sed -i '' -E 's/Code generated by .* DO NOT EDIT/FOO/g' {} \;
3232
- name: golangci-lint
33-
uses: golangci/golangci-lint-action@v3
33+
uses: golangci/golangci-lint-action@v6
3434
with:
35-
version: v1.54
35+
version: v1.60
3636
args: -v --timeout=5m
37-
skip-pkg-cache: true
3837

3938
test:
40-
runs-on: ubuntu-22.04-16core
39+
runs-on: ubuntu-latest-128
4140
permissions:
4241
pull-requests: write
4342
outputs:
@@ -46,9 +45,9 @@ jobs:
4645
- name: checkout code
4746
uses: actions/checkout@v4
4847
- name: install Go
49-
uses: actions/setup-go@v4
48+
uses: actions/setup-go@v5
5049
with:
51-
go-version: 1.21.x
50+
go-version: 1.23.x
5251

5352
- name: install deps
5453
run: |
@@ -99,7 +98,7 @@ jobs:
9998
steps:
10099
- name: Notify slack -- workflow failed
101100
id: slack
102-
uses: slackapi/slack-github-action@v1.24.0
101+
uses: slackapi/slack-github-action@v1.26.0
103102
with:
104103
payload: |
105104
{
@@ -124,7 +123,7 @@ jobs:
124123
steps:
125124
- name: Notify slack -- workflow succeeded
126125
id: slack
127-
uses: slackapi/slack-github-action@v1.24.0
126+
uses: slackapi/slack-github-action@v1.26.0
128127
with:
129128
payload: |
130129
{

.github/workflows/push.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
with:
1313
fetch-depth: 0
1414
- name: install Go
15-
uses: actions/setup-go@v4
15+
uses: actions/setup-go@v5
1616
with:
17-
go-version: 1.21.x
17+
go-version: 1.23.x
1818

1919
- name: install deps
2020
run: go install golang.org/x/tools/cmd/goimports@latest && go install github.com/klauspost/asmfmt/cmd/asmfmt@latest
@@ -33,17 +33,16 @@ jobs:
3333
find . -type f -name '*.go' -exec sed -i 's/Code generated by .* DO NOT EDIT/FOO/g' {} \;
3434
# on macos: find . -type f -name '*.go' -exec sed -i '' -E 's/Code generated by .* DO NOT EDIT/FOO/g' {} \;
3535
- name: golangci-lint
36-
uses: golangci/golangci-lint-action@v3
36+
uses: golangci/golangci-lint-action@v6
3737
with:
38-
version: v1.54
38+
version: v1.60
3939
args: -v --timeout=5m
40-
skip-pkg-cache: true
4140

4241
test:
4342
strategy:
4443
matrix:
45-
go-version: [1.21.x]
46-
os: [ubuntu-22.04-16core, windows-latest, macos-latest]
44+
go-version: [1.23.x]
45+
os: [ubuntu-latest-128, windows-latest, macos-latest]
4746
runs-on: ${{ matrix.os }}
4847
needs:
4948
- staticcheck
@@ -53,7 +52,7 @@ jobs:
5352
- name: checkout code
5453
uses: actions/checkout@v4
5554
- name: install Go
56-
uses: actions/setup-go@v4
55+
uses: actions/setup-go@v5
5756
with:
5857
go-version: ${{ matrix.go-version }}
5958

@@ -102,7 +101,7 @@ jobs:
102101
steps:
103102
- name: Notify slack -- workflow failed
104103
id: slack
105-
uses: slackapi/slack-github-action@v1.24.0
104+
uses: slackapi/slack-github-action@v1.26.0
106105
with:
107106
payload: |
108107
{
@@ -127,7 +126,7 @@ jobs:
127126
steps:
128127
- name: Notify slack -- workflow succeeded
129128
id: slack
130-
uses: slackapi/slack-github-action@v1.24.0
129+
uses: slackapi/slack-github-action@v1.26.0
131130
with:
132131
payload: |
133132
{

.golangci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ linters:
88
- govet
99
- ineffassign
1010
- misspell
11-
11+
linters-settings:
12+
gosec:
13+
excludes:
14+
- G115 # Conversions from int -> uint etc.
1215
run:
1316
issues-exit-code: 1

ecc/bls12-377/fr/pedersen/pedersen.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecc/bls12-377/fr/polynomial/pool.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecc/bls12-377/g1_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecc/bls12-377/g2_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecc/bls12-377/marshal_test.go

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecc/bls12-377/multiexp_test.go

Lines changed: 17 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ecc/bls12-377/twistededwards/point_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)