ci: download prebuilt trunk in deploy workflow
This commit is contained in:
parent
4dbd831d0b
commit
4eba92e8a2
1 changed files with 14 additions and 1 deletions
|
|
@ -81,6 +81,8 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
install -d -m 755 "$HOME/.local/bin"
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
if ! command -v cargo >/dev/null 2>&1; then
|
||||
curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal
|
||||
. "$HOME/.cargo/env"
|
||||
|
|
@ -89,7 +91,18 @@ jobs:
|
|||
fi
|
||||
rustup target add wasm32-unknown-unknown
|
||||
if ! command -v trunk >/dev/null 2>&1; then
|
||||
cargo install trunk --locked
|
||||
trunk_version="0.21.14"
|
||||
arch="$(uname -m)"
|
||||
case "${arch}" in
|
||||
x86_64|amd64) trunk_target="x86_64-unknown-linux-gnu" ;;
|
||||
aarch64|arm64) trunk_target="aarch64-unknown-linux-gnu" ;;
|
||||
*)
|
||||
echo "error: unsupported runner arch for trunk prebuilt binary: ${arch}"
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
curl -fsSL "https://github.com/trunk-rs/trunk/releases/download/v${trunk_version}/trunk-${trunk_target}.tar.gz" \
|
||||
| tar -xz -C "$HOME/.local/bin" trunk
|
||||
fi
|
||||
|
||||
cd apps/tauri/ui
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue