File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,16 @@ jobs:
1313 matrix :
1414 node : [20, 22]
1515 os :
16- # macos-14 is arm64 (m1)
16+ # https://github.com/actions/runner-images#available-images
1717 - name : darwin
18- host : macos-14
18+ host : macos-26 # arm64
1919
20- # macos-13 is x86
20+ # macos-15-intel is the last intel image and will go out of service
21+ # in fall 2027
2122 - name : mac-x64
22- host : macos-13
23+ host : macos-15-intel
2324
24- # ubuntu-22.04 is x86. Still no arm linux runners yet
25- # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
25+ # ubuntu-22.04 is x86
2626 - name : linux
2727 host : ubuntu-22.04
2828
5050 sudo apt-get install -y software-properties-common git build-essential clang libssl-dev libkrb5-dev libc++-dev wget python3 zlib1g-dev
5151
5252 npm ci
53- # does the JOBS=2 speed things up? not sure
5453 JOBS=2 npx prebuildify --strip --napi=false --tag-libc -t "$(node --version | tr -d 'v')"
5554 - uses : actions/upload-artifact@v4
5655 with :
Original file line number Diff line number Diff line change @@ -49,20 +49,21 @@ jobs:
4949 eval "$(ssh-agent -s)"
5050 ssh-add ~/.ssh_tests/id_rsa
5151
52- npm install
52+ JOBS=2 npm install
5353 npm test
5454
5555 mac-test :
56- name : " test node ${{ matrix.node-version }} on macOS "
56+ name : " test node ${{ matrix.node-version }} on ${{ matrix.runner }} "
5757 env :
5858 CC : clang
5959 CXX : clang++
6060 npm_config_clang : 1
6161 GYP_DEFINES : use_obsolete_asm=true
62- runs-on : macos-26
6362 strategy :
6463 matrix :
6564 node-version : [20, 22]
65+ runner : ["macos-26", "macos-15-intel"]
66+ runs-on : ${{ matrix.runner }}
6667 steps :
6768 - uses : actions/checkout@v5
6869 with :
8687 eval "$(ssh-agent -s)"
8788 ssh-add ~/.ssh_tests/id_rsa
8889
89- npm install
90+ JOBS=2 npm install
9091 npm test
9192
9293 linux-arm-test :
@@ -128,5 +129,5 @@ jobs:
128129 eval "$(ssh-agent -s)"
129130 ssh-add ~/.ssh_tests/id_rsa
130131
131- npm install
132+ JOBS=2 npm install
132133 npm test
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ RUN apk add build-base git krb5-dev libgit2-dev libssh-dev pkgconfig python3 tzd
66# Ensure C++17 is used explicitly for Node.js 20 and define POSIX features
77ENV CXXFLAGS="-std=c++17 -D_GNU_SOURCE"
88ENV CFLAGS="-std=c17 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L"
9+ ENV JOBS="2"
910
1011ADD . /app
1112WORKDIR /app
Original file line number Diff line number Diff line change 11FROM node:${NODE_VERSION}-bullseye
22
33ENV DEBIAN_FRONTEND noninteractive
4+ ENV JOBS="2"
45ENV LC_ALL en_US.UTF-8
56ENV LANG ${LC_ALL}
67
You can’t perform that action at this time.
0 commit comments