ci: add Rust for node-crc native build
Deploy to VPS / deploy (push) Failing after 1m26s
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:
+11
-19
@@ -16,25 +16,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
if command -v sudo >/dev/null 2>&1; then
|
apt-get update
|
||||||
sudo apt-get update
|
apt-get install -y --no-install-recommends \
|
||||||
sudo apt-get install -y --no-install-recommends \
|
build-essential \
|
||||||
build-essential \
|
ca-certificates \
|
||||||
ca-certificates \
|
curl \
|
||||||
curl \
|
libssl-dev \
|
||||||
libssl-dev \
|
pkg-config \
|
||||||
pkg-config \
|
python3
|
||||||
python3
|
|
||||||
else
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y --no-install-recommends \
|
|
||||||
build-essential \
|
|
||||||
ca-certificates \
|
|
||||||
curl \
|
|
||||||
libssl-dev \
|
|
||||||
pkg-config \
|
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user