Skip to content

Commit eafaa91

Browse files
authored
feat: bump go version to 1.24.0 in wrokflows (#531)
1 parent c600274 commit eafaa91

File tree

5 files changed

+13
-53
lines changed

5 files changed

+13
-53
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
matrix:
1414
include:
1515
- os: ubuntu-latest
16-
go: '1.22'
16+
go: '1.24'
1717
- os: macos-latest
18-
go: '1.22'
18+
go: '1.24'
1919
- os: windows-latest
20-
go: '1.22'
20+
go: '1.24'
2121
runs-on: ${{ matrix.os }}
2222

2323
steps:
@@ -41,7 +41,7 @@ jobs:
4141
- name: Check Format Unix
4242
if: matrix.os == 'ubuntu-latest'
4343
run: test -z "$(gofumpt -l . | tee >(cat 1>&2))"
44-
44+
4545
- name: Install mockgen
4646
run: make install-mockgen
4747

.github/workflows/code-generation-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go
1919
uses: actions/setup-go@v5
2020
with:
21-
go-version: '1.22'
21+
go-version: '1.24'
2222

2323
- name: Set up Go bin in PATH
2424
run: echo "${HOME}/go/bin" >> $GITHUB_PATH

.github/workflows/e2e_tests.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,29 @@ on:
55
pull_request:
66
branches: [main, develop]
77
workflow_dispatch:
8-
98
jobs:
109
unit_tests:
1110
name: Run e2e tests
1211
strategy:
1312
matrix:
1413
include:
1514
- os: ubuntu-latest
16-
go: '1.22'
15+
go: '1.24'
1716
- os: windows-latest
18-
go: '1.22'
17+
go: '1.24'
1918
runs-on: ${{ matrix.os }}
20-
2119
steps:
2220
- name: Checkout
2321
uses: actions/checkout@v4
24-
2522
- name: Setup Go
2623
uses: actions/setup-go@v5
2724
with:
2825
go-version: ${{ matrix.go }}
29-
3026
- name: Install deps
3127
run: make install-deps
32-
3328
- name: Run e2e tests Windows
3429
if: runner.os == 'Windows'
3530
run: make e2e-test-windows
36-
3731
- name: Run e2e tests other
3832
if: runner.os != 'Windows'
3933
run: make e2e-test

.github/workflows/release.yml

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
name: "Release Sedge"
2-
32
on:
43
workflow_dispatch:
54
inputs:
65
tag:
76
description: "The version number (e.g: v0.1.2) of the release you want to push"
87
required: true
98
default: "master"
10-
119
permissions:
1210
contents: write
1311
packages: write
14-
1512
jobs:
1613
sedge-darwin:
1714
name: Build sedge darwin
@@ -21,25 +18,20 @@ jobs:
2118
steps:
2219
- name: Checkout
2320
uses: actions/checkout@v4
24-
2521
- uses: actions/setup-go@v5
2622
with:
27-
go-version: "1.22.0"
28-
23+
go-version: "1.24.0"
2924
- run: chmod +x ./scripts/build-go-darwin-binaries.sh && ./scripts/build-go-darwin-binaries.sh
30-
3125
- uses: actions/upload-artifact@v4
3226
name: Uploading sedge darwin amd64 package
3327
with:
3428
name: sedge-${{env.VERSION}}-darwin-amd64
3529
path: build/sedge-${{env.VERSION}}-darwin-amd64
36-
3730
- uses: actions/upload-artifact@v4
3831
name: Uploading sedge darwin arm64 package
3932
with:
4033
name: sedge-${{env.VERSION}}-darwin-arm64
4134
path: build/sedge-${{env.VERSION}}-darwin-arm64
42-
4335
sedge-windows:
4436
name: Build sedge windows
4537
runs-on: windows-latest
@@ -49,19 +41,15 @@ jobs:
4941
steps:
5042
- name: Checkout
5143
uses: actions/checkout@v4
52-
5344
- uses: actions/setup-go@v5
5445
with:
55-
go-version: "1.22.0"
56-
46+
go-version: "1.24.0"
5747
- run: scripts\build-go-windows-binaries.ps1
58-
5948
- uses: actions/upload-artifact@v4
6049
name: Uploading sedge windows amd64 package
6150
with:
6251
name: sedge-${{env.VERSION}}-windows-amd64.exe
6352
path: build\sedge-${{env.VERSION}}-windows-amd64.exe
64-
6553
sedge-linux:
6654
name: Build sedge linux
6755
runs-on: ubuntu-latest
@@ -71,32 +59,25 @@ jobs:
7159
steps:
7260
- name: Checkout
7361
uses: actions/checkout@v4
74-
7562
- uses: actions/setup-go@v5
7663
with:
77-
go-version: "1.22.0"
78-
64+
go-version: "1.24.0"
7965
- name: Set up QEMU
8066
uses: docker/setup-qemu-action@v3
81-
8267
- name: Set up Docker Buildx
8368
id: buildx
8469
uses: docker/setup-buildx-action@v3
85-
8670
- run: chmod +x ./scripts/build-go-linux-binaries.sh && ./scripts/build-go-linux-binaries.sh
87-
8871
- uses: actions/upload-artifact@v4
8972
name: Uploading sedge linux amd64 package
9073
with:
9174
name: sedge-${{env.VERSION}}-linux-amd64
9275
path: build/sedge-${{env.VERSION}}-linux-amd64
93-
9476
- uses: actions/upload-artifact@v4
9577
name: Uploading sedge linux arm64 package
9678
with:
9779
name: sedge-${{env.VERSION}}-linux-arm64
9880
path: build/sedge-${{env.VERSION}}-linux-arm64
99-
10081
update-homebrew:
10182
name: Update Homebrew package
10283
runs-on: ubuntu-latest
@@ -108,18 +89,15 @@ jobs:
10889
uses: actions/download-artifact@v4
10990
with:
11091
path: /tmp/binaries
111-
11292
- name: Checkout repository
11393
uses: actions/checkout@v4
11494
with:
11595
repository: NethermindEth/homebrew-sedge
11696
path: homebrew-sedge
117-
11897
- name: Update Homebrew file with new version and hash
11998
run: |
12099
chmod +x /home/runner/work/sedge/sedge/homebrew-sedge/scripts/update-homebrew.sh
121100
bash /home/runner/work/sedge/sedge/homebrew-sedge/scripts/update-homebrew.sh
122-
123101
- name: Authenticate App
124102
id: gh-app
125103
uses: actions/create-github-app-token@v1
@@ -128,7 +106,6 @@ jobs:
128106
private-key: ${{ secrets.APP_PRIVATE_KEY }}
129107
repositories: "homebrew-sedge,sedge"
130108
skip-token-revoke: true
131-
132109
- name: Create Pull Request
133110
uses: peter-evans/create-pull-request@v6
134111
with:
@@ -140,7 +117,6 @@ jobs:
140117
path: homebrew-sedge
141118
add-paths: |
142119
Formula/sedge.rb
143-
144120
publish-github:
145121
name: "Release and upload binaries to github"
146122
runs-on: ubuntu-latest
@@ -150,7 +126,6 @@ jobs:
150126
steps:
151127
- name: Checkout
152128
uses: actions/checkout@v4
153-
154129
- name: Download packages
155130
uses: actions/download-artifact@v4
156131
with:
@@ -159,7 +134,6 @@ jobs:
159134
run: |
160135
awk '/## \[Unreleased\]/ {flag=1;next} /## \[/ {flag=0} flag' CHANGELOG.md > /tmp/changelog
161136
echo -e "## [${{env.VERSION}}]\n$(cat /tmp/changelog)" > /tmp/changelog
162-
163137
- name: Upload release to Github Releases
164138
uses: ncipollo/release-action@v1
165139
with:
@@ -168,7 +142,6 @@ jobs:
168142
draft: true
169143
tag: ${{ github.event.inputs.tag }}
170144
name: ${{ github.event.inputs.tag }}
171-
172145
publish-ppa:
173146
name: "Publishing Sedge to PPA repository"
174147
runs-on: ubuntu-latest
@@ -198,7 +171,7 @@ jobs:
198171
path: sedge
199172
- uses: actions/setup-go@v5
200173
with:
201-
go-version: "1.22.0"
174+
go-version: "1.24.0"
202175
- name: Run publish PPA script
203176
env:
204177
GOPATH: /home/runner/go

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,32 @@ on:
55
pull_request:
66
branches: [main, develop]
77
workflow_dispatch:
8-
98
jobs:
109
unit_tests:
1110
name: Run unit tests
1211
strategy:
1312
matrix:
1413
include:
1514
- os: ubuntu-latest
16-
go: '1.22'
15+
go: '1.24'
1716
- os: windows-latest
18-
go: '1.22'
17+
go: '1.24'
1918
runs-on: ${{ matrix.os }}
20-
2119
steps:
2220
- name: Checkout
2321
uses: actions/checkout@v4
24-
2522
- name: Setup Go
2623
uses: actions/setup-go@v5
2724
with:
2825
go-version: ${{ matrix.go }}
29-
3026
- name: Install deps
3127
run: make install-deps
32-
3328
- name: Run tests ubuntu
3429
if: matrix.os == 'ubuntu-latest'
3530
run: make codecov-test
36-
3731
- name: Run tests other
3832
if: matrix.os != 'ubuntu-latest'
3933
run: make generate && make test-no-e2e
40-
4134
- name: Upload coverage to Codecov
4235
uses: codecov/codecov-action@v4
4336
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)