From fde516fbba3a31cc123f610fda48035ff26a0054 Mon Sep 17 00:00:00 2001 From: CherishCai <785427346@qq.com> Date: Wed, 28 Jan 2026 11:05:27 +0800 Subject: [PATCH 1/3] ai-coding: CI Update Rust --- .github/workflows/CI.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 141ed6e..b11b06d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,6 +3,8 @@ env: DEBUG: napi:* APP_NAME: nacos-sdk-rust-binding-node MACOSX_DEPLOYMENT_TARGET: '10.13' + CARGO_NET_GIT_FETCH_WITH_CLI: true + CARGO_BUILD_JOBS: 1 'on': push: branches: @@ -105,6 +107,12 @@ jobs: with: toolchain: stable targets: ${{ matrix.settings.target }} + - name: Update Rust + if: ${{ !matrix.settings.docker }} + run: rustup update stable + - name: Update Cargo dependencies + if: ${{ !matrix.settings.docker }} + run: cargo update - name: Cache cargo uses: actions/cache@v3 with: From 8dd803e64616d9b7591d8db0c30574728ac0cfa2 Mon Sep 17 00:00:00 2001 From: CherishCai <785427346@qq.com> Date: Wed, 28 Jan 2026 11:37:08 +0800 Subject: [PATCH 2/3] ci: CI Update Rust, if matrix.settings.docker --- .github/workflows/CI.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b11b06d..a52e86e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -43,12 +43,13 @@ jobs: docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian build: |- set -e && + rustup update stable && cargo update && RUST_BACKTRACE=full yarn build --target x86_64-unknown-linux-gnu && strip *.node - host: ubuntu-latest target: x86_64-unknown-linux-musl docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine - build: set -e && yarn build && strip *.node + build: set -e && rustup update stable && cargo update && yarn build && strip *.node - host: macos-latest target: aarch64-apple-darwin build: | @@ -59,6 +60,7 @@ jobs: docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 build: |- set -e && + rustup update stable && cargo update && RUST_BACKTRACE=1 yarn build --target aarch64-unknown-linux-gnu && aarch64-unknown-linux-gnu-strip *.node - host: ubuntu-latest @@ -84,6 +86,7 @@ jobs: docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine build: |- set -e && + rustup update stable && cargo update && rustup target add aarch64-unknown-linux-musl && yarn build --target aarch64-unknown-linux-musl && /aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node From 82aa3c75389d480007765ef7ac354291f74705df Mon Sep 17 00:00:00 2001 From: CherishCai <785427346@qq.com> Date: Wed, 28 Jan 2026 11:49:41 +0800 Subject: [PATCH 3/3] ci: CI Update actions/download-artifact@v4 --- .github/workflows/CI.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a52e86e..4a79782 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -241,7 +241,7 @@ jobs: - name: Install dependencies run: yarn install - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bindings-${{ matrix.settings.target }} path: . @@ -273,7 +273,7 @@ jobs: - name: Install dependencies run: yarn install - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bindings-x86_64-unknown-linux-gnu path: . @@ -307,7 +307,7 @@ jobs: yarn config set supportedArchitectures.libc "musl" yarn install - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bindings-x86_64-unknown-linux-musl path: . @@ -331,7 +331,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bindings-aarch64-unknown-linux-gnu path: . @@ -365,7 +365,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bindings-aarch64-unknown-linux-musl path: . @@ -405,7 +405,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bindings-armv7-unknown-linux-gnueabihf path: . @@ -446,12 +446,12 @@ jobs: - name: Install dependencies run: yarn install - name: Download macOS x64 artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bindings-x86_64-apple-darwin path: artifacts - name: Download macOS arm64 artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bindings-aarch64-apple-darwin path: artifacts @@ -486,7 +486,7 @@ jobs: - name: Install dependencies run: yarn install - name: Download all artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts - name: Move artifacts