Skip to content

Commit

Permalink
fix: docker builds (#3620)
Browse files Browse the repository at this point in the history
initial
  • Loading branch information
sklppy88 authored Nov 28, 2023
1 parent da29c02 commit f3eac52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions scripts/bootstrap_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ 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 SOURCE_DATE_EPOCH=$(date +%s)
export GIT_DIRTY=false
export GIT_COMMIT=$(awk '/commit =/ {print $3}' .gitrepo)
else
export GIT_COMMIT=$(git rev-parse --verify HEAD)
fi

# Build native.
cargo build --features="noirc_frontend/aztec" --release
cargo build --features="noirc_driver/aztec" --release
8 changes: 5 additions & 3 deletions scripts/bootstrap_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ cd $(dirname "$0")/..
./scripts/install_wasm-bindgen.sh

# 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 SOURCE_DATE_EPOCH=$(date +%s)
export GIT_DIRTY=false
export GIT_COMMIT=$(awk '/commit =/ {print $3}' .gitrepo)
else
export GIT_COMMIT=$(git rev-parse --verify HEAD)
fi

export cargoExtraArgs="--features noirc_frontend/aztec"
export cargoExtraArgs="--features noirc_driver/aztec"

yarn
yarn build
Expand Down

0 comments on commit f3eac52

Please sign in to comment.