File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -134,26 +134,24 @@ jobs:
134134 shell : bash
135135 run : |
136136 set -eo pipefail
137- flags=(--target $TARGET --profile $PROFILE --bins
138- --no-default-features --features aws-kms,cli,asm-keccak)
139137
140- # `jemalloc` is not fully supported on MSVC or aarch64 Linux.
138+ ext=""
139+ [[ "$TARGET" == *windows* ]] && ext=".exe"
140+
141+ flags="--target $TARGET --profile $PROFILE --bins --no-default-features --features aws-kms,cli,asm-keccak"
141142 if [[ "$TARGET" != *msvc* && "$TARGET" != "aarch64-unknown-linux-gnu" ]]; then
142- flags+=( --features jemalloc)
143+ flags="$flags --features jemalloc"
143144 fi
144145
145- [[ "$TARGET" == *windows* ]] && ext=".exe"
146-
147146 if [[ "$TARGET" == "x86_64-unknown-linux-musl" ]]; then
148- FLAGS_STR="${flags[@]}"
149- docker run -v $PWD:/opt/revive messense/rust-musl-cross:x86_64-musl /bin/bash -c '
147+ docker run -v $PWD:/opt/revive messense/rust-musl-cross:x86_64-musl /bin/bash -c "
150148 cd /opt/revive
151149 rustup target add x86_64-unknown-linux-musl
152- cargo build $FLAGS_STR
153- '
150+ cargo build $flags
151+ "
154152 sudo chown -R $(id -u):$(id -g) .
155153 else
156- cargo build "${ flags[@]}"
154+ cargo build $ flags
157155 fi
158156
159157 bins=(cast forge)
You can’t perform that action at this time.
0 commit comments