Skip to content

Commit

Permalink
chore: Change to use bash in script instead of dot
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfschoen committed Dec 15, 2024
1 parent d9650d9 commit b73b54d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions packages/secret-contracts/my-counter-contract/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ unit-test:
build: _build compress-wasm
_build:
cargo clean && \
. ../../../set-env.sh && \
sudo bash ../../../set-env.sh && \
cargo build --release --target wasm32-unknown-unknown

# This is a build suitable for uploading to mainnet.
Expand All @@ -29,7 +29,7 @@ _build:
build-mainnet: _build-mainnet compress-wasm
_build-mainnet:
cargo clean && \
. ../../../set-env.sh && \
sudo bash ../../../set-env.sh && \
cargo build --release --target wasm32-unknown-unknown

# like build-mainnet, but slower and more deterministic
Expand All @@ -38,7 +38,7 @@ _build-mainnet:
build-mainnet-reproducible: _build-mainnet-reproducible
_build-mainnet-reproducible:
cargo clean && \
. ../../../set-env.sh && \
sudo bash ../../../set-env.sh && \
docker buildx build --label "sco" --tag "sco" -f "../../../docker/secret-contract-optimizer.Dockerfile" . && \
docker run --rm -v "$$(pwd)":/contract \
--mount type=volume,source="$$(basename "$$(pwd)")_cache",target=/contract/target \
Expand Down
6 changes: 3 additions & 3 deletions packages/secret-contracts/nunya-contract/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ unit-test:
build: _build compress-wasm
_build:
cargo clean && \
. ../../../set-env.sh && \
sudo bash ../../../set-env.sh && \
cargo build --release --target wasm32-unknown-unknown

# This is a build suitable for uploading to mainnet.
Expand All @@ -34,7 +34,7 @@ _build:
build-mainnet: _build-mainnet compress-wasm
_build-mainnet:
cargo clean && \
. ../../../set-env.sh && \
sudo bash ../../../set-env.sh && \
cargo build --release --target wasm32-unknown-unknown

# like build-mainnet, but slower and more deterministic
Expand All @@ -43,7 +43,7 @@ _build-mainnet:
build-mainnet-reproducible: _build-mainnet-reproducible
_build-mainnet-reproducible:
cargo clean && \
. ../../../set-env.sh && \
sudo bash ../../../set-env.sh && \
docker buildx build --label "sco" --tag "sco" -f "../../../docker/secret-contract-optimizer.Dockerfile" . && \
docker run --rm -v "$$(pwd)":/contract \
--mount type=volume,source="$$(basename "$$(pwd)")_cache",target=/contract/target \
Expand Down
6 changes: 3 additions & 3 deletions packages/secret-contracts/secret-gateway/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ unit-test:
build: _build compress-wasm
_build:
cargo clean && \
. ../../../set-env.sh && \
sudo bash ../../../set-env.sh && \
cargo build --release --target wasm32-unknown-unknown

# This is a build suitable for uploading to mainnet.
Expand All @@ -29,15 +29,15 @@ _build:
build-mainnet: _build-mainnet compress-wasm
_build-mainnet:
cargo clean && \
. ../../../set-env.sh && \
sudo bash ../../../set-env.sh && \
cargo build --release --target wasm32-unknown-unknown

# like build-mainnet, but slower and more deterministic
.PHONY: build-mainnet-reproducible _build-mainnet-reproducible
build-mainnet-reproducible: _build-mainnet-reproducible
_build-mainnet-reproducible:
cargo clean && \
. ../../../set-env.sh && \
sudo bash ../../../set-env.sh && \
docker buildx build --label "sco" --tag "sco" -f "../../../docker/secret-contract-optimizer.Dockerfile" . && \
docker run --rm -v "$$(pwd)":/contract \
--mount type=volume,source="$$(basename "$$(pwd)")_cache",target=/contract/target \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ unit-test:
build: _build compress-wasm
_build:
cargo clean && \
. ../../../../../set-env.sh && \
sudo bash ../../../../../set-env.sh && \
cargo build --release --target wasm32-unknown-unknown

# This is a build suitable for uploading to mainnet.
Expand All @@ -29,15 +29,15 @@ _build:
build-mainnet: _build-mainnet compress-wasm
_build-mainnet:
cargo clean && \
. ../../../../../set-env.sh && \
sudo bash ../../../../../set-env.sh && \
cargo build --release --target wasm32-unknown-unknown

# like build-mainnet, but slower and more deterministic
.PHONY: build-mainnet-reproducible _build-mainnet-reproducible
build-mainnet-reproducible: _build-mainnet-reproducible
_build-mainnet-reproducible:
cargo clean && \
. ../../../../../set-env.sh && \
sudo bash ../../../../../set-env.sh && \
docker buildx build --label "sco" --tag "sco" -f "../../../../../docker/secret-contract-optimizer.Dockerfile" . && \
docker run --rm -v "$$(pwd)":/contract \
--mount type=volume,source="$$(basename "$$(pwd)")_cache",target=/contract/target \
Expand Down

0 comments on commit b73b54d

Please sign in to comment.