Skip to content

Commit aa0929b

Browse files
feat: add darwin pre-build to the release pipeline
1 parent 9ef4431 commit aa0929b

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,31 @@ jobs:
3232
name: arm-prebuilds
3333
path: packages/core/prebuilds
3434

35+
build-native-darwin-arm:
36+
runs-on: macos-latest
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
with:
41+
fetch-depth: 0
42+
submodules: true
43+
- uses: pnpm/action-setup@v2
44+
- uses: actions/setup-node@v3
45+
with:
46+
cache: pnpm
47+
node-version-file: .nvmrc
48+
- run: pnpm install --frozen-lockfile --prefer-offline
49+
- name: Build native code on Darwin ARM
50+
run: pnpm moon core:build-native-addon
51+
- name: Upload Darwin ARM prebuilds
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: darwin-arm-prebuilds
55+
path: packages/core/prebuilds
56+
3557
build:
3658
runs-on: ubuntu-latest
37-
needs: build-native-arm
59+
needs: [build-native-arm, build-native-darwin-arm]
3860

3961
steps:
4062
- uses: actions/checkout@v4
@@ -57,6 +79,12 @@ jobs:
5779
name: arm-prebuilds
5880
path: packages/core/prebuilds
5981

82+
- name: Download Darwin ARM prebuilds
83+
uses: actions/download-artifact@v4
84+
with:
85+
name: darwin-arm-prebuilds
86+
path: packages/core/prebuilds
87+
6088
- name: Publish the libraries
6189
run: |
6290
if [[ "${{ github.ref }}" == *"-alpha"* ]]; then

0 commit comments

Comments
 (0)