4141 matrix :
4242 node-version : [18.x, 20.x]
4343 host : [macos-13, windows-latest, ubuntu-latest]
44- include :
45- - host : macos-13
46- target : x86_64-apple-darwin
47- - host : windows-latest
48- target : x86_64-pc-windows-msvc
49- - host : ubuntu-latest
50- target : x86_64-unknown-linux-gnu
51- - host : ubuntu-latest
52- target : x86_64-unknown-linux-musl
5344 exclude :
5445 - node-version : 18.x
5546 host : macos-13
@@ -59,37 +50,35 @@ jobs:
5950 host : macos-13
6051 - node-version : 20.x
6152 host : windows-latest
53+ include :
54+ - host : macos-13
55+ target : x86_64-apple-darwin
56+ - host : windows-latest
57+ target : x86_64-pc-windows-msvc
58+ - host : ubuntu-latest
59+ target : x86_64-unknown-linux-gnu
60+ - host : ubuntu-latest
61+ target : x86_64-unknown-linux-musl
6262
6363 runs-on : ${{ matrix.host }}
6464 steps :
6565 - name : Checkout
66- uses : actions/checkout@v4
66+ uses : actions/checkout@v5
6767 - name : Setup pnpm
6868 uses : pnpm/action-setup@v4
6969 with :
7070 version : 10
7171 - name : Setup Node.js ${{ matrix.node-version }}
72- uses : actions/setup-node@v4
72+ uses : actions/setup-node@v6
7373 with :
7474 node-version : ${{ matrix.node-version }}
7575 cache : ' pnpm'
76- - name : Prune store
77- shell : bash
78- run : |
79- PNPM_STORE_PATH=$(pnpm store path)
80- echo "[Debug] Store path: $PNPM_STORE_PATH"
81- if [ -d ${PNPM_STORE_PATH} ]; then
82- echo "[Debug] pnpm store exists"
83- pnpm store prune
84- else
85- echo "[Debug] pnpm store does not exist"
86- fi
8776 - name : Install dependencies
8877 run : pnpm -r install --frozen-lockfile
8978 - name : Lint
9079 run : pnpm lint
9180 - name : Download artifact bindings-${{ matrix.target }}
92- uses : actions/download-artifact@v4
81+ uses : actions/download-artifact@v6
9382 with :
9483 name : bindings-${{ matrix.target }}
9584 path : crates/native_binding
10291 run : docker run --rm -v $(pwd):/build -w /build chf007/pnpm pnpm test:binding
10392 # 以下的测试流程应该在所有平台都执行,但 windows 好像还有些问题,因此目前只在 ubuntu-latest 执行
10493 - name : Download all artifacts
105- uses : actions/download-artifact@v4
94+ uses : actions/download-artifact@v6
10695 with :
10796 path : crates/native_binding/artifacts
10897 - name : List Package crates/native_binding
@@ -122,8 +111,6 @@ jobs:
122111 NODE_OPTIONS : --max_old_space_size=4096
123112 - name : test
124113 run : pnpm test
125- env :
126- CI : true
127114 # 以下 coverage 流程通过 artifact 拆分文件作为单独 job 上传时间损耗过长,因此在在 node test 后直接继续执行
128115 - name : Upload [taro-cli] coverage to Codecov
129116 uses : codecov/codecov-action@v5
@@ -164,7 +151,7 @@ jobs:
164151 runs-on : ubuntu-latest
165152 steps :
166153 - name : Checkout
167- uses : actions/checkout@v4
154+ uses : actions/checkout@v5
168155 - name : Setup Rust
169156 uses : dtolnay/rust-toolchain@stable
170157 with :
0 commit comments