@@ -178,9 +178,63 @@ jobs:
178178 name : Windows_amd64_checksum
179179 path : ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_beacon_node.sha512sum
180180 retention-days : 2
181+ build-macos-amd64 :
182+ name : macOS AMD64 release asset
183+ runs-on : ubuntu-latest
184+ steps :
185+ - name : Checkout code
186+ uses : actions/checkout@v2
187+ - name : Build project
188+ id : make_dist
189+ run : |
190+ make dist-macos
191+ cd dist
192+ ARCHIVE=$(echo nimbus-eth2_macOS_amd64_*.tar.gz)
193+ echo "::set-output name=archive::"${ARCHIVE}
194+ echo "::set-output name=archive_dir::"${ARCHIVE%.tar.gz}
195+ tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus_beacon_node.sha512sum
196+ - name : Upload archive artefact
197+ uses : actions/upload-artifact@v2
198+ with :
199+ name : macOS_amd64_archive
200+ path : ./dist/${{ steps.make_dist.outputs.archive }}
201+ retention-days : 2
202+ - name : Upload checksum artefact
203+ uses : actions/upload-artifact@v2
204+ with :
205+ name : macOS_amd64_checksum
206+ path : ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_beacon_node.sha512sum
207+ retention-days : 2
208+ build-macos-arm64 :
209+ name : macOS ARM64 release asset
210+ runs-on : ubuntu-latest
211+ steps :
212+ - name : Checkout code
213+ uses : actions/checkout@v2
214+ - name : Build project
215+ id : make_dist
216+ run : |
217+ make dist-macos-arm64
218+ cd dist
219+ ARCHIVE=$(echo nimbus-eth2_macOS_arm64_*.tar.gz)
220+ echo "::set-output name=archive::"${ARCHIVE}
221+ echo "::set-output name=archive_dir::"${ARCHIVE%.tar.gz}
222+ tar -xzf ${ARCHIVE} ${ARCHIVE%.tar.gz}/build/nimbus_beacon_node.sha512sum
223+ - name : Upload archive artefact
224+ uses : actions/upload-artifact@v2
225+ with :
226+ name : macOS_arm64_archive
227+ path : ./dist/${{ steps.make_dist.outputs.archive }}
228+ retention-days : 2
229+ - name : Upload checksum artefact
230+ uses : actions/upload-artifact@v2
231+ with :
232+ name : macOS_arm64_checksum
233+ path : ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_beacon_node.sha512sum
234+ retention-days : 2
181235 prepare-release :
182236 name : Prepare release draft
183- needs : [build-amd64, build-arm64, build-arm, build-win64]
237+ needs : [build-amd64, build-arm64, build-arm, build-win64, build-macos-amd64, build-macos-arm64 ]
184238 runs-on : ubuntu-latest
185239 steps :
186240 - name : Download artefacts
@@ -202,6 +256,10 @@ jobs:
202256 cat Linux_arm_checksum/* >> release_notes.md
203257 echo '# Windows AMD64' >> release_notes.md
204258 cat Windows_amd64_checksum/* >> release_notes.md
259+ echo '# macOS AMD64' >> release_notes.md
260+ cat macOS_amd64_checksum/* >> release_notes.md
261+ echo '# macOS ARM64' >> release_notes.md
262+ cat macOS_arm64_checksum/* >> release_notes.md
205263 echo '```' >> release_notes.md
206264 - name : Create release
207265 id : create_release
@@ -217,6 +275,8 @@ jobs:
217275 Linux_arm64_archive/*
218276 Linux_arm_archive/*
219277 Windows_amd64_archive/*
278+ macOS_amd64_archive/*
279+ macOS_arm64_archive/*
220280 - name : Delete artefacts
221281 uses : geekyeggo/delete-artifact@v1
222282 with :
@@ -230,4 +290,8 @@ jobs:
230290 Linux_arm_checksum
231291 Windows_amd64_archive
232292 Windows_amd64_checksum
293+ macOS_amd64_archive
294+ macOS_amd64_checksum
295+ macOS_arm64_archive
296+ macOS_arm64_checksum
233297
0 commit comments