@@ -14,40 +14,58 @@ jobs:
1414 matrix :
1515 os :
1616 - ubuntu-22.04
17- - macos-11
1817 - windows-2022
1918 node_version :
2019 - 18
2120 node_arch :
2221 - x64
22+ cpp_arch :
23+ - x64
24+ ARCH :
25+ - x64
2326 zmq_draft :
2427 - false
25- zmq_shared :
26- - false
2728 zmq_version :
2829 - 4.3.4
29- skip_gc_finalizer_tests :
30- - true
31-
32- # include:
33- # - os: windows-latest
34- # node_version: 18
35- # node_arch: x86
36- # zmq_draft: false
37- # zmq_shared: false
38- # skip_gc_finalizer_tests: true
39-
40- # - os: macos-11.0
41- # node_version: 15
42- # node_arch: arm64
43- # zmq_draft: false
44- # zmq_shared: false
30+
31+ include :
32+ - os : windows-2022
33+ node_version : 18
34+ node_arch : x86
35+ ARCH : x86
36+ cpp_arch : amd64_x86
37+ zmq_draft : false
38+ zmq_version : 4.3.4
39+
40+ # - os: windows-2022
41+ # node_version: 18
42+ # node_arch: x64
43+ # ARCH: arm64
44+ # cpp_arch: amd64_arm64
45+ # zmq_draft: false
46+ # zmq_version: 4.3.4
47+
48+ - os : macos-11
49+ node_version : 18
50+ node_arch : x64
51+ ARCH : x86_64
52+ cpp_arch : x64
53+ zmq_draft : false
54+ zmq_version : 4.3.4
55+
56+ - os : macos-11
57+ node_version : 18
58+ node_arch : x64
59+ ARCH : arm64
60+ cpp_arch : amd64_arm64
61+ zmq_draft : false
62+ zmq_version : 4.3.4
4563
4664 env :
4765 ZMQ_VERSION : ${{ matrix.zmq_version }}
4866 ZMQ_DRAFT : ${{ matrix.zmq_draft }}
49- ZMQ_SHARED : ${{ matrix.zmq_shared }}
50- SKIP_GC_FINALIZER_TESTS : ${{ matrix.skip_gc_finalizer_tests }}
67+ ZMQ_SHARED : false
68+ ARCH : ${{ matrix.ARCH }}
5169 steps :
5270 - uses : actions/checkout@v3
5371
@@ -56,42 +74,40 @@ jobs:
5674 with :
5775 path : |
5876 ./node_modules/
59- ~/.npm
60- ~/AppData/Roaming/npm-cache
61- ./build/zeromq-${{ matrix.zmq_version }}.tar.gz
62- ./zeromq-${{ matrix.zmq_version }}.tar.gz
63- ./libzmq
64- ./build/libzmq
77+ ./build/
6578 key : " cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ matrix.zmq_draft }}-ZMQ_VERSION:${{ matrix.zmq_version }}-Node:${{ matrix.node_version }}-${{ hashFiles('./package.json') }}"
6679 restore-keys : |
67- "cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ matrix.zmq_draft }}-ZMQ_VERSION:${{ matrix.zmq_version }}-Node:${{ matrix.node_version }}"
80+ "cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ matrix.zmq_draft }}-ZMQ_VERSION:${{ matrix.zmq_version }}-Node:${{ matrix.node_version }}- "
6881
6982 - name : Setup Cpp
7083 uses : aminya/setup-cpp@v1
7184 with :
7285 vcvarsall : ${{ contains(matrix.os, 'windows') }}
7386 cmake : true
7487 ninja : true
75- architecture : ${{ matrix.node_arch }}
88+ architecture : ${{ matrix.cpp_arch }}
89+
90+ - uses : pnpm/action-setup@v2.2.4
91+ with :
92+ version : 7
7693
7794 - name : Install Node
7895 uses : actions/setup-node@v3
7996 with :
8097 node-version : ${{ matrix.node_version }}
8198 architecture : ${{ matrix.node_arch }}
99+ cache : " pnpm"
82100
83101 - name : Install Mac-OS Dependencies
84102 if : contains(matrix.os, 'macos')
85103 run : |
86- brew install libsodium
104+ brew install libsodium gnutls
87105
88106 - name : Install Dependencies and Build
89- run : npm install
107+ run : pnpm install
90108
91109 - name : Prebuild
92- run : npm run prebuild
93- env :
94- ARCH : ${{ matrix.node_arch }}
110+ run : pnpm run prebuild
95111
96112 - name : Upload artifacts
97113 uses : actions/upload-artifact@v2
@@ -100,12 +116,16 @@ jobs:
100116
101117 - name : Lint
102118 if : contains(matrix.os, 'ubuntu')
103- run : npm run lint-test
119+ run : pnpm run lint-test
104120
105121 - name : Test (Debug)
106- run : |
107- npm run test.skip_gc_tests
122+ uses : nick-fields/retry@v2
123+ with :
124+ timeout_minutes : 15
125+ max_attempts : 1
126+ command : |
127+ pnpm run test.skip_gc_tests
108128
109129 - name : Tests + GC Tests (Release)
110130 run : |
111- npm run test
131+ pnpm run test
0 commit comments