Skip to content

Commit

Permalink
feat: build on ARM32 (#383)
Browse files Browse the repository at this point in the history
cross-compiling from X86 doesn't wor (issues building openssl) and on a Raapi-3 the build fails cause the Raspi-3 is out of RAM
  • Loading branch information
andrea-dintino authored Nov 13, 2024
1 parent 7c3a912 commit c63a6ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ setup: ## ⬇️ Install deps
build: setup clean ## 📦 Build the binary
@echo "📦 Building"
@pnpm sea

build-raspi32: setup clean ## 📦 Build the binary for Arm32
@echo "📦 Building"
@pnpm raspi32

up: ## 🚀 Run the project in development mode
@pnpm dev $@
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"b": "pnpm rollup -c",
"p": "pkg .",
"sea": "pnpm b && pnpm p",
"pkgraspi32": "pkg . --targets node18-linux-armv7",
"raspi32": "pnpm b && pnpm pkgraspi32",
"dev": "nodemon -e ts -w ./src -x pnpm run watch -z ./contracts -p 3000",
"watch": "node --loader ts-node/esm src/index.ts",
"test": "FILES_DIR=. pnpm e2e && jest",
Expand Down

0 comments on commit c63a6ba

Please sign in to comment.