Skip to content

Commit f3eac52

Browse files
authored
fix: docker builds (#3620)
initial
1 parent da29c02 commit f3eac52

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

scripts/bootstrap_native.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ set -eu
44
cd $(dirname "$0")/..
55

66
# If this project has been subrepod into another project, set build data manually.
7+
export SOURCE_DATE_EPOCH=$(date +%s)
8+
export GIT_DIRTY=false
79
if [ -f ".gitrepo" ]; then
8-
export SOURCE_DATE_EPOCH=$(date +%s)
9-
export GIT_DIRTY=false
1010
export GIT_COMMIT=$(awk '/commit =/ {print $3}' .gitrepo)
11+
else
12+
export GIT_COMMIT=$(git rev-parse --verify HEAD)
1113
fi
1214

1315
# Build native.
14-
cargo build --features="noirc_frontend/aztec" --release
16+
cargo build --features="noirc_driver/aztec" --release

scripts/bootstrap_packages.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ cd $(dirname "$0")/..
66
./scripts/install_wasm-bindgen.sh
77

88
# If this project has been subrepod into another project, set build data manually.
9+
export SOURCE_DATE_EPOCH=$(date +%s)
10+
export GIT_DIRTY=false
911
if [ -f ".gitrepo" ]; then
10-
export SOURCE_DATE_EPOCH=$(date +%s)
11-
export GIT_DIRTY=false
1212
export GIT_COMMIT=$(awk '/commit =/ {print $3}' .gitrepo)
13+
else
14+
export GIT_COMMIT=$(git rev-parse --verify HEAD)
1315
fi
1416

15-
export cargoExtraArgs="--features noirc_frontend/aztec"
17+
export cargoExtraArgs="--features noirc_driver/aztec"
1618

1719
yarn
1820
yarn build

0 commit comments

Comments
 (0)