Skip to content

Commit

Permalink
add variable IS_GEN_COMPLETION to fix exec format error
Browse files Browse the repository at this point in the history
  • Loading branch information
mmx committed Apr 13, 2023
1 parent a1c18dd commit 920a88f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,17 @@ jobs:
# README, LICENSE and CHANGELOG files
cp "README.md" "LICENSE" "$ARCHIVE_DIR"
# Shell completions
for sh in 'bash' 'fish' 'zsh'; do
"${{ steps.strip.outputs.BIN_PATH }}" gen-completions -s $sh -o "${ARCHIVE_DIR}/completions"
done
IS_GEN_COMPLETION=true
case ${{ matrix.job.target }} in
aarch64-unknown-linux-gnu) IS_GEN_COMPLETION=false ;;
esac;
if $IS_GEN_COMPLETION; then
# Shell completions
for sh in 'bash' 'fish' 'zsh'; do
"${{ steps.strip.outputs.BIN_PATH }}" gen-completions -s $sh -o "${ARCHIVE_DIR}/completions"
done
fi
# base compressed package
pushd "${PKG_STAGING}/" >/dev/null
Expand Down

0 comments on commit 920a88f

Please sign in to comment.