-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: earthly split runners, structure reverts (#5524)
- use published multiplatform base for bb builds, add ci command to publish (ran manually in github actions UI) - move bench compilation to `build` runner, split out bench binaries from running - move bb-native-tests to `test` runner (along with preset-release-assert-all), add parallelism lock for native tests, hopefully won't degrade builds anymore - roll back non-determinism in builds (remove cache mounts) - roll back a bit to old /usr/src format inside image builds
- Loading branch information
Showing
13 changed files
with
344 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Publishes our base images with custom installs or builds etc | ||
# These publish a multi-arch image by first publishing with x86, and then with arm | ||
# This is a bit of a hack, but earthly needs to see both image types to make a multiplatform image | ||
# and its easiest for arm to just pull the x86 image after. | ||
name: Publish Base Images | ||
on: | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
env: | ||
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }} | ||
# cancel if reran on same PR if exists, otherwise if on same commit | ||
concurrency: | ||
group: publish-base-images-${{ github.event.pull_request.number || github.ref_name }} | ||
cancel-in-progress: ${{ github.ref_name != 'master' }} | ||
steps: | ||
- uses: earthly/actions-setup@v1 | ||
with: | ||
version: v0.8.5 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
submodules: recursive | ||
|
||
- name: Setup | ||
working-directory: ./scripts | ||
run: ./setup_env.sh ${{ secrets.DOCKERHUB_PASSWORD }} ${{ github.actor }} | ||
|
||
- name: Publish Barretenberg Base Images | ||
working-directory: ./barretenberg/cpp | ||
run: | | ||
# see note above about how this creates a multiplatform image | ||
earthly-cloud build x86 --push +build-base | ||
earthly-cloud build arm --push +build-base | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.