Skip to content

Commit 41cdf66

Browse files
GuillaumeLagrangeart049
authored andcommitted
ci(core): build artifacts for both x86 and arm64 during release
1 parent a254191 commit 41cdf66

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,31 @@ permissions:
1010
contents: write
1111

1212
jobs:
13+
build-native-arm:
14+
runs-on: codspeedhq-arm64-ubuntu-22.04
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
submodules: true
21+
- uses: pnpm/action-setup@v2
22+
- uses: actions/setup-node@v3
23+
with:
24+
cache: pnpm
25+
node-version-file: .nvmrc
26+
- run: pnpm install --frozen-lockfile --prefer-offline
27+
- name: Build native code on ARM
28+
run: pnpm moon core:build-native-addon
29+
- name: Upload ARM prebuilds
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: arm-prebuilds
33+
path: packages/core/prebuilds
34+
1335
build:
1436
runs-on: ubuntu-latest
37+
needs: build-native-arm
1538

1639
steps:
1740
- uses: actions/checkout@v4
@@ -28,6 +51,12 @@ jobs:
2851
- name: Build the libraries
2952
run: pnpm moon run :build
3053

54+
- name: Download ARM prebuilds
55+
uses: actions/download-artifact@v4
56+
with:
57+
name: arm-prebuilds
58+
path: packages/core/prebuilds
59+
3160
- name: Publish the libraries
3261
run: |
3362
if [[ "${{ github.ref }}" == *"-alpha"* ]]; then

0 commit comments

Comments
 (0)