diff --git a/.github/workflows/build-rust-binding.yml b/.github/workflows/build-rust-binding.yml index d4d9e51cea49..4db2440e40a8 100644 --- a/.github/workflows/build-rust-binding.yml +++ b/.github/workflows/build-rust-binding.yml @@ -14,17 +14,12 @@ jobs: strategy: fail-fast: false matrix: - node-version: [18.x] + node-version: [22] settings: - - host: macos-13 - target: x86_64-apple-darwin - build: | - pnpm build:binding:release - strip -x crates/native_binding/*.node - host: windows-latest build: pnpm build:binding:release target: x86_64-pc-windows-msvc - - host: ubuntu-22.04 + - host: ubuntu-latest target: x86_64-unknown-linux-gnu docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian build: |- @@ -32,11 +27,11 @@ jobs: npm install -g corepack@0.31.0 && pnpm build:binding:release --target x86_64-unknown-linux-gnu && strip crates/native_binding/*.node - - host: ubuntu-22.04 + - host: ubuntu-latest target: x86_64-unknown-linux-musl docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine build: set -e && pnpm build:binding:release && strip crates/native_binding/*.node - - host: macos-13 + - host: macos-latest target: aarch64-apple-darwin build: | pnpm build:binding:release --target aarch64-apple-darwin diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index cf0bc660a69c..1b63d6f592f0 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -39,20 +39,16 @@ jobs: - build-rust-wasm strategy: matrix: - node-version: [18.x, 20.x] - host: [macos-13, windows-latest, ubuntu-latest] + node-version: [22, 20] + host: [macos-latest, windows-latest, ubuntu-latest] exclude: - - node-version: 18.x - host: macos-13 - - node-version: 18.x - host: windows-latest - - node-version: 20.x - host: macos-13 - - node-version: 20.x + - node-version: 20 + host: macos-latest + - node-version: 20 host: windows-latest include: - - host: macos-13 - target: x86_64-apple-darwin + - host: macos-latest + target: aarch64-apple-darwin - host: windows-latest target: x86_64-pc-windows-msvc - host: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 499b818a2362..cde2319f18ee 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -98,10 +98,10 @@ jobs: uses: pnpm/action-setup@v4 with: version: 10 - - name: Setup Node 18 + - name: Setup Node uses: actions/setup-node@v6 with: - node-version: 18 + node-version: 22 cache: 'pnpm' registry-url: 'https://registry.npmjs.org' # Don't touch! - name: Git Identity @@ -168,14 +168,14 @@ jobs: # Bootstrap project - name: Install dependencies - run: pnpm -r install --frozen-lockfile + run: pnpm install --frozen-lockfile - name: Download all artifacts uses: actions/download-artifact@v6 with: path: crates/native_binding/artifacts - name: Move artifacts run: pnpm artifacts - - name: Checkout Harmony Commond Line Tools + - name: Checkout Harmony Command Line Tools env: COMMANDLINE_TOOLS_URL: https://storage.360buyimg.com/taro-patch/command-line-tools-for-harmony/5.0.13.200/linux_x64 TOOLS_HOME: ${{ runner.os == 'macOS' && '~/harmony-tools' || '$HOME/harmony-tools' }} diff --git a/.github/workflows/sync-components-types.yml b/.github/workflows/sync-components-types.yml index d8ebdbe11f64..754edabcd3dd 100644 --- a/.github/workflows/sync-components-types.yml +++ b/.github/workflows/sync-components-types.yml @@ -42,10 +42,10 @@ jobs: args: [--frozen-lockfile, --strict-peer-dependencies] - args: [--filter @tarojs/components, -D, miniapp-types@latest] # Note: 当前同步脚本使用 ts-node 与 node20 存在兼容问题,修复后解除版本限制 - - name: Setup Node 18 + - name: Setup Node uses: actions/setup-node@v6 with: - node-version: 18 + node-version: 22 cache: 'pnpm' registry-url: 'https://registry.npmjs.org' # Don't touch! diff --git a/packages/taro-components/scripts/stencil/stencil.config.ts b/packages/taro-components/scripts/stencil/stencil.config.ts index 723d8b0fc661..7e3b6e9fb0af 100644 --- a/packages/taro-components/scripts/stencil/stencil.config.ts +++ b/packages/taro-components/scripts/stencil/stencil.config.ts @@ -98,6 +98,7 @@ export const config: Config = { * 实际并不支持 clone 模式,暂不考虑修复 */ testing: { + browserArgs: ['--no-sandbox', '--disable-setuid-sandbox'], globals: { 'ts-jest': { diagnostics: false,