-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(avm): run transpiler in ci (#4258)
Adds avm-simulator build to ci such that it can be ran within noir-contracts build 1. Create binary 2. Copy binary in `yarn-project-base` 3. Run binary in noir contracts `build` - in yarn project build
- Loading branch information
Showing
10 changed files
with
69 additions
and
3 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,13 @@ | ||
FROM rust:bookworm | ||
|
||
WORKDIR /usr/src | ||
COPY ./avm-transpiler ./avm-transpiler | ||
COPY ./noir ./noir | ||
|
||
WORKDIR /usr/src/avm-transpiler | ||
RUN apt-get update && apt-get install -y git | ||
RUN ./scripts/bootstrap_native.sh | ||
|
||
FROM ubuntu:lunar | ||
COPY --from=0 /usr/src/avm-transpiler/target/release/avm-transpiler /usr/src/avm-transpiler/target/release/avm-transpiler | ||
ENTRYPOINT ["sh", "-c"] |
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,7 @@ | ||
** | ||
|
||
!avm-transpiler/ | ||
!noir/ | ||
**/target/ | ||
**/node_modules/ | ||
**/packages/ |
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,20 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
cd $(dirname "$0")/.. | ||
|
||
# If this project has been subrepod into another project, set build data manually. | ||
export SOURCE_DATE_EPOCH=$(date +%s) | ||
export GIT_DIRTY=false | ||
if [ -f ".gitrepo" ]; then | ||
export GIT_COMMIT=$(awk '/commit =/ {print $3}' .gitrepo) | ||
else | ||
export GIT_COMMIT=$(git rev-parse --verify HEAD) | ||
fi | ||
|
||
# Build native. | ||
if [ -n "${DEBUG:-}" ]; then | ||
cargo build | ||
else | ||
cargo build --release | ||
fi |
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"scripts": { | ||
"build": "yarn clean && yarn build:contracts && tsc -b", | ||
"build:contracts": "./scripts/compile.sh && ./scripts/generate-types.sh", | ||
"build:contracts": "./scripts/compile.sh && ./scripts/transpile.sh && ./scripts/generate-types.sh", | ||
"clean": "rm -rf ./dest .tsbuildinfo ./src ./target" | ||
} | ||
} |
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