1
- # TODO: Setup release pipeline
2
1
name : Release Suite
3
2
4
3
on :
@@ -11,12 +10,8 @@ concurrency:
11
10
cancel-in-progress : true
12
11
13
12
env :
14
- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
15
- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
16
13
REPO_NAME : ${{ github.repository_owner }}/anchor
17
14
IMAGE_NAME : ${{ github.repository_owner }}/anchor
18
- # Enable self-hosted runners for the sigp repo only.
19
- SELF_HOSTED_RUNNERS : ${{ github.repository == 'sigp/anchor' }}
20
15
21
16
jobs :
22
17
extract-version :
@@ -29,20 +24,20 @@ jobs:
29
24
arch : [aarch64-unknown-linux-gnu,
30
25
x86_64-unknown-linux-gnu,
31
26
x86_64-apple-darwin,
32
- x86_64-windows ]
27
+ aarch64-apple-darwin ]
33
28
34
29
include :
35
30
- arch : aarch64-unknown-linux-gnu
36
- runner : ${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "linux", "release", "large"]') || ' ubuntu-22 .04' }}
31
+ runner : ' ubuntu-24 .04'
37
32
profile : maxperf
38
33
- arch : x86_64-unknown-linux-gnu
39
- runner : ${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "linux", "release", "large"]') || ' ubuntu-22 .04' }}
34
+ runner : ' ubuntu-24 .04'
40
35
profile : maxperf
41
36
- arch : x86_64-apple-darwin
42
37
runner : macos-13
43
38
profile : maxperf
44
- - arch : x86_64-windows
45
- runner : ${{ github.repository == 'sigp/anchor' && fromJson('["self-hosted", "windows", "release"]') || 'windows-2019' }}
39
+ - arch : aarch64-apple-darwin
40
+ runner : macos-14
46
41
profile : maxperf
47
42
48
43
runs-on : ${{ matrix.runner }}
51
46
- name : Checkout sources
52
47
uses : actions/checkout@v4
53
48
- name : Get latest version of stable Rust
54
- if : env.SELF_HOSTED_RUNNERS == 'false'
55
49
run : rustup update stable
56
50
57
- # ==============================
58
- # Windows dependencies
59
- # ==============================
60
-
61
- - uses : KyleMayes/install-llvm-action@v1
62
- if : env.SELF_HOSTED_RUNNERS == 'false' && startsWith(matrix.arch, 'x86_64-windows')
63
- with :
64
- version : " 17.0"
65
- directory : ${{ runner.temp }}/llvm
66
- - name : Set LIBCLANG_PATH
67
- if : startsWith(matrix.arch, 'x86_64-windows')
68
- run : echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
69
-
70
51
# ==============================
71
52
# Builds
72
53
# ==============================
@@ -89,14 +70,13 @@ jobs:
89
70
90
71
- name : Build Anchor for x86_64-apple-darwin
91
72
if : matrix.arch == 'x86_64-apple-darwin'
92
- run : cargo install --path anchor --force --locked --profile ${{ matrix.profile }}
73
+ run : cargo install --path anchor --force --locked --features portable --profile ${{ matrix.profile }}
93
74
94
- - name : Build Anchor for Windows
95
- if : matrix.arch == 'x86_64-windows '
96
- run : cargo install --path anchor --force --locked --profile ${{ matrix.profile }}
75
+ - name : Build Anchor for aarch64-apple-darwin
76
+ if : matrix.arch == 'aarch64-apple-darwin '
77
+ run : cargo install --path anchor --force --locked --features portable --profile ${{ matrix.profile }}
97
78
98
79
- name : Configure GPG and create artifacts
99
- if : startsWith(matrix.arch, 'x86_64-windows') != true
100
80
env :
101
81
GPG_SIGNING_KEY : ${{ secrets.GPG_SIGNING_KEY }}
102
82
GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
@@ -115,20 +95,6 @@ jobs:
115
95
done
116
96
mv *tar.gz* ..
117
97
118
- - name : Configure GPG and create artifacts Windows
119
- if : startsWith(matrix.arch, 'x86_64-windows')
120
- env :
121
- GPG_SIGNING_KEY : ${{ secrets.GPG_SIGNING_KEY }}
122
- GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
123
- run : |
124
- echo $env:GPG_SIGNING_KEY | gpg --batch --import
125
- mkdir artifacts
126
- move $env:USERPROFILE/.cargo/bin/anchor.exe ./artifacts
127
- cd artifacts
128
- tar -czf anchor-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz anchor.exe
129
- gpg --passphrase "$env:GPG_PASSPHRASE" --batch --pinentry-mode loopback -ab anchor-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
130
- move *tar.gz* ..
131
-
132
98
# =======================================================================
133
99
# Upload artifacts
134
100
# This is required to share artifacts between different jobs
@@ -151,7 +117,7 @@ jobs:
151
117
draft-release :
152
118
name : Draft Release
153
119
needs : [build, extract-version]
154
- runs-on : ubuntu-22 .04
120
+ runs-on : ubuntu-24 .04
155
121
env :
156
122
VERSION : ${{ needs.extract-version.outputs.VERSION }}
157
123
steps :
@@ -187,13 +153,12 @@ jobs:
187
153
# The formatting here is borrowed from OpenEthereum: https://github.com/openethereum/openethereum/blob/main/.github/workflows/build.yml
188
154
run : |
189
155
body=$(cat <<- "ENDBODY"
190
- <Rick and Morty character >
156
+ <Boat type >
191
157
192
158
## Testing Checklist (DELETE ME)
193
159
194
- - [ ] Run on synced Holesky Sigma Prime nodes.
195
- - [ ] Run on synced Canary (mainnet) Sigma Prime nodes.
196
- - [ ] Resync a Holesky node.
160
+ - [ ] Run on synced Anchor Interop Sigma Prime nodes.
161
+ - [ ] Resync a Hoodi node.
197
162
- [ ] Resync a mainnet node.
198
163
199
164
## Release Checklist (DELETE ME)
@@ -208,19 +173,6 @@ jobs:
208
173
209
174
Add a summary.
210
175
211
- ## Update Priority
212
-
213
- This table provides priorities for which classes of users should update particular components.
214
-
215
- |User Class |Beacon Node | Validator Client|
216
- --- | --- | ---
217
- |Staking Users| <TODO> | <TODO> |
218
- |Non-Staking Users| <TODO>|---|
219
-
220
- *See [Update
221
- Priorities](https://anchor-book.sigmaprime.io/installation-priorities.html)
222
- more information about this table.*
223
-
224
176
## All Changes
225
177
226
178
${{ steps.changelog.outputs.CHANGELOG }}
@@ -233,13 +185,13 @@ jobs:
233
185
234
186
| System | Architecture | Binary | PGP Signature |
235
187
|:---:|:---:|:---:|:---|
236
- | <img src=" https://simpleicons.org/icons/ apple.svg" style="width: 32px;"/ > | x86_64 | [anchor-${{ env.VERSION }}-x86_64-apple-darwin.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-x86_64-apple-darwin.tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-x86_64-apple-darwin.tar.gz.asc) |
237
- | <img src=" https://simpleicons.org/icons/linux.svg" style="width: 32px;"/ > | x86_64 | [anchor-${{ env.VERSION }}-x86_64-unknown-linux-gnu .tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-x86_64-unknown-linux-gnu .tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-x86_64-unknown-linux-gnu .tar.gz.asc) |
238
- | <img src=" https://simpleicons.org/icons/raspberrypi.svg" style="width: 32px;"/ > | aarch64 | [anchor-${{ env.VERSION }}-aarch64 -unknown-linux-gnu.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-aarch64 -unknown-linux-gnu.tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-aarch64 -unknown-linux-gnu.tar.gz.asc) |
239
- | <img src=" https://upload.wikimedia .org/wikipedia/commons/c/c4/Windows_logo_-_2021_%28Black%29.svg" style="width: 32px;"/ > | x86_64 | [anchor-${{ env.VERSION }}-x86_64-windows .tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-x86_64-windows .tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-x86_64-windows .tar.gz.asc) |
188
+ | <picture> <source media="(prefers-color-scheme: dark)" srcset=" https://cdn. simpleicons.org/apple/white" > <source media="(prefers-color-scheme: light)" srcset="https://cdn.simpleicons.org/apple" ><img src="https://cdn.simpleicons.org/apple" width="32" alt="Apple logo"> </picture > | x86_64 | [anchor-${{ env.VERSION }}-x86_64-apple-darwin.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-x86_64-apple-darwin.tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-x86_64-apple-darwin.tar.gz.asc) |
189
+ | <picture> <source media="(prefers-color-scheme: dark)" srcset=" https://cdn. simpleicons.org/apple/white" > <source media="(prefers-color-scheme: light)" srcset="https://cdn.simpleicons.org/apple" ><img src="https://cdn.simpleicons.org/apple" width="32" alt="Apple logo"> </picture > | aarch64 | [anchor-${{ env.VERSION }}-aarch64-apple-darwin .tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-aarch64-apple-darwin .tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-aarch64-apple-darwin .tar.gz.asc) |
190
+ | <picture> <source media="(prefers-color-scheme: dark)" srcset=" https://cdn. simpleicons.org/linux/white" > <source media="(prefers-color-scheme: light)" srcset="https://cdn.simpleicons.org/linux/black" ><img src="https://cdn.simpleicons.org/linux" width="32" alt="Linux logo"> </picture > | x86_64 | [anchor-${{ env.VERSION }}-x86_64 -unknown-linux-gnu.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-x86_64 -unknown-linux-gnu.tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-x86_64 -unknown-linux-gnu.tar.gz.asc) |
191
+ | <picture> <source media="(prefers-color-scheme: dark)" srcset=" https://cdn.simpleicons .org/raspberrypi/white" > <source media="(prefers-color-scheme: light)" srcset="https://cdn.simpleicons.org/raspberrypi/black" > <img src="https://cdn.simpleicons.org/raspberrypi" width="32" alt="Raspberrypi logo"> </picture > | aarch64 | [anchor-${{ env.VERSION }}-aarch64-unknown-linux-gnu .tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-aarch64-unknown-linux-gnu .tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anchor-${{ env.VERSION }}-aarch64-unknown-linux-gnu .tar.gz.asc) |
240
192
| | | | |
241
193
| **System** | **Option** | - | **Resource** |
242
- | <img src=" https://simpleicons.org/icons/ docker.svg" style="width: 32px;"/ > | Docker | [${{ env.VERSION }}](https://hub.docker.com/r/${{ env.IMAGE_NAME }}/tags?page=1&ordering=last_updated&name=${{ env.VERSION }}) | [${{ env.IMAGE_NAME }}](https://hub.docker.com/r/${{ env.IMAGE_NAME }}) |
194
+ | <picture> <source media="(prefers-color-scheme: dark)" srcset=" https://cdn. simpleicons.org/docker/white" > <source media="(prefers-color-scheme: light)" srcset="https://cdn.simpleicons.org/docker/black" > <img src="https://cdn.simpleicons.org/docker/black" width="32" alt="Docker logo"></picture > | Docker | [${{ env.VERSION }}](https://hub.docker.com/r/${{ env.IMAGE_NAME }}/tags?page=1&ordering=last_updated&name=${{ env.VERSION }}) | [${{ env.IMAGE_NAME }}](https://hub.docker.com/r/${{ env.IMAGE_NAME }}) |
243
195
ENDBODY
244
196
)
245
197
assets=(./anchor-*.tar.gz*/anchor-*.tar.gz*)
0 commit comments