From a85c7da5ed6c8e53a36b79000f8647546ed12030 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sun, 26 Jul 2026 11:45:49 +0700 Subject: [PATCH] ci: add Rust for node-crc native build Install dependencies step fails because node-crc requires cargo to compile its native N-API module. Restore Rust setup in CI. --- .gitea/workflows/deploy.yml | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index fb9156b..84d4506 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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