Skip to content

Commit c7d0cbd

Browse files
authored
Update release-musl.yml
1 parent 197b7c0 commit c7d0cbd

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/release-musl.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -119,30 +119,29 @@ jobs:
119119
SVM_TARGET_PLATFORM: ${{ matrix.svm_target_platform }}
120120
PLATFORM_NAME: ${{ matrix.platform }}
121121
TARGET: ${{ matrix.target }}
122+
PROFILE: ${{ env.PROFILE }}
122123
OUT_DIR: target/${{ matrix.target }}/${{ env.PROFILE }}
123124
shell: bash
124125
run: |
125126
set -eo pipefail
126-
flags=(--target $TARGET --profile $PROFILE --bins
127-
--no-default-features --features aws-kms,cli,asm-keccak)
128127
129-
# `jemalloc` is not fully supported on MSVC or aarch64 Linux.
128+
ext=""
129+
[[ "$TARGET" == *windows* ]] && ext=".exe"
130+
131+
flags="--target $TARGET --profile $PROFILE --bins --no-default-features --features aws-kms,cli,asm-keccak"
130132
if [[ "$TARGET" != *msvc* && "$TARGET" != "aarch64-unknown-linux-gnu" ]]; then
131-
flags+=(--features jemalloc)
133+
flags="$flags --features jemalloc"
132134
fi
133135
134-
[[ "$TARGET" == *windows* ]] && ext=".exe"
135-
136136
if [[ "$TARGET" == "x86_64-unknown-linux-musl" ]]; then
137137
docker run -v $PWD:/opt/revive messense/rust-musl-cross:x86_64-musl /bin/bash -c "
138-
cd /opt/revive
139-
rustup target add x86_64-unknown-linux-musl
140-
echo $flags
141-
echo ${flags[@]}
142-
cargo build ${flags[@]}
143-
"
138+
cd /opt/revive
139+
rustup target add x86_64-unknown-linux-musl
140+
cargo build $flags
141+
"
142+
sudo chown -R $(id -u):$(id -g) .
144143
else
145-
cargo build "${flags[@]}"
144+
cargo build $flags
146145
fi
147146
148147
bins=(cast forge)

0 commit comments

Comments
 (0)