Switch from pnpm to Bun; install Rust through mise; update Tauri packages on both sides
ci / check (push) Successful in 5m9s
ci / check (push) Successful in 5m9s
This commit is contained in:
+11
-17
@@ -16,24 +16,18 @@ fi
|
||||
$SUDO apt-get update -q
|
||||
$SUDO apt-get install -yq --no-install-recommends "${packages[@]}"
|
||||
|
||||
# Rust, cargo-xwin and mise may already be here from the CI cache.
|
||||
export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
|
||||
|
||||
# Rust: not pinned in mise.toml, because mise needs rustup for it.
|
||||
if ! command -v cargo >/dev/null; then
|
||||
curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal
|
||||
fi
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
# mise, and the Rust it installs through rustup, may already be here from the CI cache.
|
||||
export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$HOME/.local/share/mise/shims:$PATH"
|
||||
command -v mise >/dev/null || curl -fsSL https://mise.run | MISE_VERSION=v2026.9.1 sh
|
||||
for dir in "$HOME/.cargo/bin" "$HOME/.local/bin" "$HOME/.local/share/mise/shims"; do
|
||||
echo "$dir" >> "$GITHUB_PATH"
|
||||
done
|
||||
# Node, Bun and Rust, at the versions in mise.toml.
|
||||
mise trust && mise install
|
||||
|
||||
if [[ "${1:-}" == "--windows" ]]; then
|
||||
rustup target add x86_64-pc-windows-msvc
|
||||
command -v cargo-xwin >/dev/null || cargo install --locked cargo-xwin
|
||||
mise exec -- rustup target add x86_64-pc-windows-msvc
|
||||
command -v cargo-xwin >/dev/null || mise exec -- cargo install --locked cargo-xwin
|
||||
fi
|
||||
|
||||
command -v mise >/dev/null || curl -fsSL https://mise.run | MISE_VERSION=v2026.9.1 sh
|
||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||
echo "$HOME/.local/share/mise/shims" >> "$GITHUB_PATH"
|
||||
export PATH="$HOME/.local/bin:$HOME/.local/share/mise/shims:$PATH"
|
||||
mise trust && mise install
|
||||
pnpm install --frozen-lockfile
|
||||
bun install --frozen-lockfile
|
||||
|
||||
Reference in New Issue
Block a user