33 push :
44 tags :
55 - " *"
6+ workflow_dispatch :
67
78jobs :
89 Docs :
9- if :
10- " startsWith(github.ref, 'refs/tags/') &&
11- !contains(github.event.head_commit.message, '[skip ci]')"
1210 runs-on : ubuntu-22.04
1311 strategy :
1412 fail-fast : false
@@ -21,14 +19,12 @@ jobs:
2119 - x64
2220 cpp_arch :
2321 - x64
24- ARCH :
25- - x64
26- zmq_draft :
27- - false
2822 env :
29- ZMQ_DRAFT : ${{ matrix.zmq_draft }}
30- ZMQ_SHARED : false
31- ARCH : ${{ matrix.ARCH }}
23+ npm_config_zmq_draft : false
24+ npm_config_zmq_shared : false
25+ npm_config_arch : ${{ matrix.node_arch }}
26+ npm_config_target_arch : ${{ matrix.node_arch }}
27+ setup_node_arch : ${{ matrix.node_arch }}
3228
3329 steps :
3430 - uses : actions/checkout@v4
@@ -40,40 +36,46 @@ jobs:
4036 ./node_modules/
4137 ./build/
4238 key :
43- " cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch
44- }}-ZMQ_DRAFT:${{ matrix.zmq_draft }}-Node:${{ matrix.node_version
45- }}-${{ hashFiles('./package.json') }}"
39+ # prettier-ignore
40+ " cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch}}-ZMQ_DRAFT:${{env.npm_config_zmq_draft }}-Node:${{ matrix.node_version}}-${{hashFiles('./package.json') }}-docs"
4641 restore-keys : |
47- "cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ matrix.zmq_draft }}-Node:${{ matrix.node_version }}-"
42+ "cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ env.npm_config_zmq_draft }}-Node:${{ matrix.node_version }}-"
43+
44+ - name : Env map
45+ run : |
46+ if [ "${{ matrix.node_arch }}" = "ia32" ]; then
47+ echo "setup_node_arch=x86" > $GITHUB_ENV
48+ fi
49+ shell : bash
4850
4951 - name : Setup Cpp
5052 uses : aminya/setup-cpp@v1
5153 with :
54+ vcvarsall : ${{ contains(matrix.os, 'windows') }}
5255 cmake : true
56+ python : true
5357 architecture : ${{ matrix.cpp_arch }}
5458
5559 - uses : pnpm/action-setup@v4
5660 with :
57- version : 7
61+ version : 9
5862
5963 - name : Install Node
6064 uses : actions/setup-node@v4
6165 with :
6266 node-version : ${{ matrix.node_version }}
63- architecture : ${{ matrix.node_arch }}
64- cache : " pnpm"
67+ architecture : ${{ env.setup_node_arch }}
6568
6669 - name : Build Documentation
67- if : " ${{ contains(matrix.os, 'ubuntu') && !matrix.docker }}"
6870 run : |
6971 pnpm install
7072 pnpm run build.doc
7173
7274 - name : Deploy Documentation
73- if : " ${{ contains(matrix.os, 'ubuntu') && !matrix.docker }}"
7475 uses : Cecilapp/GitHub-Pages-deploy@v3
7576 with :
7677 build_dir : docs
7778 branch : gh-pages
79+ email : ${{ github.actor }}@users.noreply.github.com
7880 env :
7981 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments