Skip to content

Commit

Permalink
Merge pull request #393 from near/arm64-build
Browse files Browse the repository at this point in the history
use new arm64 build for linux and mac
  • Loading branch information
ailisp authored May 2, 2024
2 parents 37f2f78 + b32ba48 commit 83211d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ jobs:
run: test -z "$(git status --porcelain)"
- name: Run tests
run: pnpm test
if: matrix.platform == 'ubuntu-latest'
6 changes: 3 additions & 3 deletions packages/near-sdk-js/lib/cli/post-install.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions packages/near-sdk-js/src/cli/post-install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (!SUPPORTED_ARCH.includes(ARCH)) {

signale.await("Installing wasi-stub...");

const BINARYEN_VERSION = `0.1.15`;
const BINARYEN_VERSION = `0.1.16`;
const BINARYEN_VERSION_TAG = `v${BINARYEN_VERSION}`;

const BINARYEN_SYSTEM_NAME =
Expand All @@ -45,13 +45,12 @@ const BINARYEN_SYSTEM_NAME =
? "windows"
: "other";

const BINARYEN_ARCH_NAME =
ARCH === "x64" ? "X64" : ARCH === "arm64" ? "arm64" : "other";
const BINARYEN_ARCH_NAME = (ARCH == 'aarch64') ? 'ARM64' : ARCH.toUpperCase();

const BINARYEN_TAR_NAME = `binaryen-${BINARYEN_SYSTEM_NAME}-${BINARYEN_ARCH_NAME}.tar.gz`;

await download(
`https://github.com/near/binaryen/releases/download/${BINARYEN_VERSION_TAG}/${BINARYEN_TAR_NAME}`
`https://github.com/ailisp/binaryen/releases/download/${BINARYEN_VERSION_TAG}/${BINARYEN_TAR_NAME}`
);

fs.mkdirSync("binaryen");
Expand Down

0 comments on commit 83211d9

Please sign in to comment.