-
-
Notifications
You must be signed in to change notification settings - Fork 289
37 lines (35 loc) · 1.26 KB
/
arm64-binary.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build arm64 binary
on: push
jobs:
binary:
name: Build Lodestar arm64 binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Set QEMU library path
run: echo "QEMU_LD_PREFIX=/usr/aarch64-linux-gnu" >> $GITHUB_ENV
- name: Install ARM64 libraries
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu libc6-arm64-cross libc6-dev-arm64-cross
- uses: actions/setup-node@v3
with:
node-version: 20
architecture: "arm64"
check-latest: true
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Rebuild Native Modules for ARM64
run: yarn add --force --arch=arm64 --platform=linux --ignore-workspace-root-check node-gyp && yarn --force
- name: Build Project
run: yarn build
- name: Package with Caxa
run: |
yarn global add caxa
npx caxa --input . --output "lodestar" -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/node_modules/.bin/lodestar"
- uses: actions/upload-artifact@v3
with:
name: lodestar-next-linux-arm64
path: lodestar