Skip to content

Commit

Permalink
update release.yaml add RUSTFLAGS, add qemu-user, add QEMU_PREFIX bef…
Browse files Browse the repository at this point in the history
…ore gen-completions (#872)
  • Loading branch information
m2nx committed Jun 13, 2023
1 parent 73b006f commit dea6898
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: |
case ${{ matrix.job.target }} in
arm-unknown-linux-gnueabihf) sudo apt-get -y update ; sudo apt-get -y install gcc-arm-linux-gnueabihf ;;
aarch64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu ;;
aarch64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu qemu-user;;
x86_64-unknown-linux-musl) sudo apt-get -y update ; sudo apt-get -y install musl-tools ;;
esac
Expand Down Expand Up @@ -85,7 +85,11 @@ jobs:
rustc -V
- name: Build
run: cargo build --locked --release --target=${{ matrix.job.target }}
run: |
case ${{ matrix.job.target }} in
aarch64-unknown-linux-gnu) export RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc";;
esac;
cargo build --locked --release --target=${{ matrix.job.target }}
- name: Strip debug information from executable
id: strip
Expand Down Expand Up @@ -144,9 +148,14 @@ jobs:
# README, LICENSE and CHANGELOG files
cp "README.md" "LICENSE" "$ARCHIVE_DIR"
QEMU_PREFIX=""
case ${{ matrix.job.target }} in
aarch64-unknown-linux-gnu) QEMU_PREFIX="qemu-aarch64 -L /usr/aarch64-linux-gnu" ;;
esac;
# Shell completions
for sh in 'bash' 'fish' 'zsh'; do
"${{ steps.strip.outputs.BIN_PATH }}" gen-completions -s $sh -o "${ARCHIVE_DIR}/completions"
$QEMU_PREFIX "${{ steps.strip.outputs.BIN_PATH }}" gen-completions -s $sh -o "${ARCHIVE_DIR}/completions"
done
# base compressed package
Expand Down

1 comment on commit dea6898

@vercel
Copy link

@vercel vercel bot commented on dea6898 Jun 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

atuin – ./

atuin-ellieh.vercel.app
atuin.sh
atuin-git-main-ellieh.vercel.app

Please sign in to comment.