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
+3 -11
View File
@@ -16,16 +16,6 @@ jobs:
- name: Install system dependencies - name: Install system dependencies
run: | 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 update
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
build-essential \ build-essential \
@@ -34,7 +24,6 @@ jobs:
libssl-dev \ libssl-dev \
pkg-config \ pkg-config \
python3 python3
fi
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
@@ -47,6 +36,9 @@ jobs:
version: 11.1.3 version: 11.1.3
run_install: false run_install: false
- name: Set up Rust (for node-crc native build)
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies - name: Install dependencies
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile