Skip to content

Commit

Permalink
feat: initial Earthly CI (AztecProtocol/aztec-packages#5069)
Browse files Browse the repository at this point in the history
Introduces earthly as an alternative CI that hopes to eventually replace
our current build-system.

https://docs.earthly.dev/ is a build system that combines Makefiles and
Dockerfiles. This is basically exactly what our system needed, IMO, and
has some nice things figured out. Hope is to reduce complexity of
working with the build system by a good chunk.

Core changes:
- we have a github actions CI that runs a single end to end test inside
earthly for arm64 and x86_64
- new Earthfile's now mirror the Dockerfile's, notable differences:
  - we build our own foundry package for ARM support
  - we build our own wasi-sdk package for ARM support
- grumpkin SRS is no longer generated on the spot, but downloaded like
bn254 SRS
- we don't inject any commit hashes for Noir as this would cause
spurious rebuilds as any difference stops caching, instead we inject a
content hash (to be revisited)

 Side changes:
- since we build our own wasi-sdk 21 package, and it is clang18, some
compilation workarounds
  - allow specifying a different nargo and acvm binary in build
  - small output tweaks

---------

Co-authored-by: Charlie Lye <[email protected]>
Co-authored-by: Innokentii Sennovskii <[email protected]>
Co-authored-by: Cody Gunton <[email protected]>
Co-authored-by: Alex Gherghisan <[email protected]>
Co-authored-by: Mitchell Tracy <[email protected]>
Co-authored-by: Jan Beneš <[email protected]>
Co-authored-by: esau <[email protected]>
Co-authored-by: Facundo <[email protected]>
Co-authored-by: josh crites <[email protected]>
Co-authored-by: Tom French <[email protected]>
Co-authored-by: Álvaro Rodríguez <[email protected]>
Co-authored-by: Ilyas Ridhuan <[email protected]>
  • Loading branch information
13 people committed Mar 15, 2024
2 parents 3cddd78 + 21b697b commit 01631ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .aztec-sync-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9cc32cb5e4aaf03ea3457a8fcf3b38c1e39d3d04
8e75fe5c47250e860a4eae4dbf0973c503221720
2 changes: 1 addition & 1 deletion .github/scripts/wasm-bindgen-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd $(dirname "$0")
./cargo-binstall-install.sh

# Install wasm-bindgen-cli.
if [ "$(wasm-bindgen --version | cut -d' ' -f2)" != "0.2.86" ]; then
if [ "$(wasm-bindgen --version &> /dev/null | cut -d' ' -f2)" != "0.2.86" ]; then
echo "Building wasm-bindgen..."
cargo binstall [email protected] --force --no-confirm
fi
Expand Down

0 comments on commit 01631ac

Please sign in to comment.