diff --git a/.github/workflows/build-rust-binding.yml b/.github/workflows/build-rust-binding.yml index 4250d336ea4a..4142a526b040 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 d8f21be82b57..b9bbcae110dc 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, 24] + 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: 22 + host: macos-latest + - node-version: 22 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 @@ -74,7 +70,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'pnpm' - name: Install dependencies - run: pnpm -r install --frozen-lockfile + run: pnpm install --frozen-lockfile - name: Lint run: pnpm lint - name: Download artifact bindings-${{ matrix.target }} diff --git a/packages/taro-components/scripts/stencil/stencil.config.ts b/packages/taro-components/scripts/stencil/stencil.config.ts index 3208e0b8eaf4..05cd6ecb250f 100644 --- a/packages/taro-components/scripts/stencil/stencil.config.ts +++ b/packages/taro-components/scripts/stencil/stencil.config.ts @@ -89,8 +89,8 @@ export const config: Config = { { components: ['taro-video-core', 'taro-video-control', 'taro-video-danmu'] } ], /** - * Note: Taro内部有很多地方都直接引用了dist/components,最终的编译产物中有很多super(),导致低版安装白屏 - * 为彻底解决此包导致的白屏问题,故暂不在包构建是转为es5,而是将此包加入到项目的babel编译中 + * Note: Taro 内部有很多地方都直接引用了 dist/components,最终的编译产物中有很多 super(),导致低版安装白屏 + * 为彻底解决此包导致的白屏问题,故暂不在包构建是转为 es5,而是将此包加入到项目的 babel 编译中 */ // buildEs5: 'prod', /** @@ -99,6 +99,7 @@ export const config: Config = { * 实际并不支持 clone 模式,暂不考虑修复 */ testing: { + browserArgs: ['--no-sandbox', '--disable-setuid-sandbox'], globals: { 'ts-jest': { diagnostics: false,