diff --git a/.cargo/config.toml b/.cargo/config.toml index 57b857c..5d02554 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -41,5 +41,10 @@ rustflags = ["-C", "link-args=-Wl,--warn-unresolved-symbols"] [target.'cfg(target_os = "windows")'] rustflags = ["-C", "link-args=/FORCE"] +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "target-feature=+crt-static"] +[target.i686-pc-windows-msvc] +rustflags = ["-C", "target-feature=+crt-static"] + [target.x86_64-apple-darwin] rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"] diff --git a/.github/actions/pnpm-cache/action.yml b/.github/actions/pnpm-cache/action.yml index a289f9a..422eace 100644 --- a/.github/actions/pnpm-cache/action.yml +++ b/.github/actions/pnpm-cache/action.yml @@ -4,7 +4,7 @@ description: Install Node.js with pnpm global cache inputs: node-version: - default: '16' + default: '18' required: false type: string save-if: @@ -19,9 +19,10 @@ runs: using: composite steps: - name: Install Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} + check-latest: true # https://pnpm.io/continuous-integration#github-actions # Uses `packageManagement` field from package.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81535cd..2a76d54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ name: CI env: DEBUG: napi:* - APP_NAME: pack-binding + APP_NAME: index MACOSX_DEPLOYMENT_TARGET: '10.13' permissions: contents: write