File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,13 +129,18 @@ jobs:
129129 include :
130130 - runner : macos-15
131131 suffix : mac-arm64
132+ uname : arm64
132133 - runner : macos-15-intel
133134 suffix : mac-intel
135+ uname : x86_64
134136
135137 steps :
136138 - name : Checkout code
137139 uses : actions/checkout@v5
138140
141+ - name : Verify runner architecture
142+ run : test "$(uname -m)" = "${{ matrix.uname }}"
143+
139144 - name : Install build dependencies
140145 run : |
141146 missing=()
Original file line number Diff line number Diff line change @@ -64,13 +64,18 @@ jobs:
6464 include :
6565 - runner : macos-15
6666 arch : arm64
67+ uname : arm64
6768 - runner : macos-15-intel
6869 arch : x64
70+ uname : x86_64
6971
7072 steps :
7173 - name : Checkout code
7274 uses : actions/checkout@v5
7375
76+ - name : Verify runner architecture
77+ run : test "$(uname -m)" = "${{ matrix.uname }}"
78+
7479 - name : Install build dependencies
7580 run : |
7681 missing=()
Original file line number Diff line number Diff line change @@ -12,6 +12,28 @@ wget https://dist.libuv.org/dist/v${UV_VERSION}/libuv-v${UV_VERSION}.tar.gz -O v
1212tar -xzf v${UV_VERSION} .tar.gz
1313
1414cd libuv-v${UV_VERSION}
15+ # Keep the compat build working with manylinux2010/glibc 2.12 headers.
16+ patch -p1 << 'PATCH '
17+ --- a/src/unix/linux.c
18+ +++ b/src/unix/linux.c
19+ @@ -57,0 +58,4 @@
20+ +
21+ +#ifndef CLOCK_BOOTTIME
22+ +# define CLOCK_BOOTTIME CLOCK_MONOTONIC
23+ +#endif
24+ --- a/src/unix/udp.c
25+ +++ b/src/unix/udp.c
26+ @@ -42,0 +43,5 @@
27+ +#if defined(__linux__) && defined(__GLIBC__) && \
28+ + (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 14))
29+ +# define UV__UDP_NO_SENDMMSG 1
30+ +#endif
31+ +
32+ @@ -1314 +1319,2 @@
33+ -#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) || \
34+ +#if (defined(__linux__) && !defined(UV__UDP_NO_SENDMMSG)) || \
35+ + defined(__FreeBSD__) || defined(__APPLE__) || \
36+ PATCH
1537sh autogen.sh
1638./configure --disable-shared
1739make -j$( nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu)
You can’t perform that action at this time.
0 commit comments