Skip to content

Commit 576adc1

Browse files
authored
Update release.yml
1 parent da34d0a commit 576adc1

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)