@@ -28,19 +28,14 @@ jobs:
2828 fail-fast : false
2929 matrix :
3030 settings :
31- - host : macos-latest
31+ - host : macos-13
3232 target : x86_64-apple-darwin
3333 build : |
34- yarn build
34+ yarn build --target x86_64-apple-darwin
3535 strip -x *.node
3636 - host : windows-latest
3737 build : yarn build
3838 target : x86_64-pc-windows-msvc
39- - host : windows-latest
40- build : |
41- yarn build --target i686-pc-windows-msvc
42- yarn test
43- target : i686-pc-windows-msvc
4439 - host : ubuntu-latest
4540 target : x86_64-unknown-linux-gnu
4641 docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
6762 docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
6863 build : |-
6964 set -e &&
65+ rustup target add aarch64-unknown-linux-gnu &&
7066 yarn build --target aarch64-unknown-linux-gnu &&
7167 aarch64-unknown-linux-gnu-strip *.node
7268 - host : ubuntu-latest
9894 - host : windows-latest
9995 target : aarch64-pc-windows-msvc
10096 build : yarn build --target aarch64-pc-windows-msvc
101- name : stable - ${{ matrix.settings.target }} - node@18
97+ name : ${{ matrix.settings.target }} - node@18
10298 runs-on : ${{ matrix.settings.host }}
10399 steps :
104100 - uses : actions/checkout@v4
@@ -109,10 +105,10 @@ jobs:
109105 node-version : 18
110106 cache : yarn
111107 - name : Install
112- uses : dtolnay/rust-toolchain@stable
108+ uses : dtolnay/rust-toolchain@nightly
113109 if : ${{ !matrix.settings.docker }}
114110 with :
115- toolchain : stable
111+ toolchain : nightly
116112 targets : ${{ matrix.settings.target }}
117113 - name : Cache cargo
118114 uses : actions/cache@v4
@@ -132,19 +128,8 @@ jobs:
132128 run : ${{ matrix.settings.setup }}
133129 if : ${{ matrix.settings.setup }}
134130 shell : bash
135- - name : Setup node x86
136- if : matrix.settings.target == 'i686-pc-windows-msvc'
137- run : yarn config set supportedArchitectures.cpu "ia32"
138- shell : bash
139131 - name : Install dependencies
140132 run : yarn install
141- - name : Setup node x86
142- uses : actions/setup-node@v4
143- if : matrix.settings.target == 'i686-pc-windows-msvc'
144- with :
145- node-version : 18
146- cache : yarn
147- architecture : x86
148133 - name : Build in docker
149134 uses : addnab/docker-run-action@v3
150135 if : ${{ matrix.settings.docker }}
@@ -172,8 +157,10 @@ jobs:
172157 settings :
173158 - host : windows-latest
174159 target : x86_64-pc-windows-msvc
175- - host : macos-latest
160+ - host : macos-13
176161 target : x86_64-apple-darwin
162+ - host : macos-latest
163+ target : aarch64-apple-darwin
177164 node :
178165 - ' 18'
179166 - ' 20'
@@ -404,15 +391,15 @@ jobs:
404391 npm config set provenance true
405392 if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
406393 then
407- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN " >> ~/.npmrc
394+ echo "//registry.npmjs.org/:_authToken=$NPM_PUBLISH_TOKEN " >> ~/.npmrc
408395 npm publish --access public
409396 elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
410397 then
411- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN " >> ~/.npmrc
398+ echo "//registry.npmjs.org/:_authToken=$NPM_PUBLISH_TOKEN " >> ~/.npmrc
412399 npm publish --tag next --access public
413400 else
414401 echo "Not a release, skipping publish"
415402 fi
416403 env :
417404 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
418- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
405+ NPM_PUBLISH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
0 commit comments