diff options
| author | mmx <github@m2nx.com> | 2023-06-13 15:54:27 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-13 08:54:27 +0100 |
| commit | dea6898f2d7e4bd4f5f1e65c3379d4766e57963d (patch) | |
| tree | b34545c472e379a2de04b27847162f060b9f7530 /.github/workflows/release.yaml | |
| parent | Make requirement of PostgreSQL 14 explicit (#1048) (diff) | |
| download | atuin-dea6898f2d7e4bd4f5f1e65c3379d4766e57963d.zip | |
update release.yaml add RUSTFLAGS, add qemu-user, add QEMU_PREFIX before gen-completions (#872)
Diffstat (limited to '.github/workflows/release.yaml')
| -rw-r--r-- | .github/workflows/release.yaml | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d7990188..d03b58f6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 @@ -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 @@ -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 |
