11name : " Release Sedge"
2-
32on :
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-
119permissions :
1210 contents : write
1311 packages : write
14-
1512jobs :
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
0 commit comments