ci: add Rust for node-crc native build
Deploy to VPS / deploy (push) Failing after 1m26s

Install dependencies step fails because node-crc requires cargo
to compile its native N-API module. Restore Rust setup in CI.
This commit is contained in:
asepharyana
2026-07-26 11:45:49 +07:00
parent 2ecba1691b
commit a85c7da5ed
+11 -19
View File
@@ -16,25 +16,14 @@ jobs:
- name: Install system dependencies
run: |
if command -v sudo >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
libssl-dev \
pkg-config \
python3
else
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
libssl-dev \
pkg-config \
python3
fi
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
libssl-dev \
pkg-config \
python3
- name: Set up Node.js
uses: actions/setup-node@v4
@@ -47,6 +36,9 @@ jobs:
version: 11.1.3
run_install: false
- name: Set up Rust (for node-crc native build)
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: pnpm install --frozen-lockfile