From 69b54dacc93658f4d5c6c704164858eea78b7197 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Fri, 17 Jan 2025 19:50:51 +0100 Subject: [PATCH] Build Linux ARM64 in GitHub Actions --- .github/workflows/ci.yml | 7 ++++--- scripts/build.js | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b256dec5c..45ca6eb1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,13 +27,14 @@ jobs: arch: arm64 os: macos-14 - name: linux + arch: x64 os: ubuntu-20.04 + - name: linux + arch: arm64 + os: ubuntu-22.04-arm - name: win32 os: windows-latest exclude: - # See https://github.com/lydell/node-pty/issues/3 - - name: linux - arch: arm64 # We'll build this with x64. There is no Windows arm64 GitHub Actions runner, # but --arch=arm64 seems to produce an arm64 binary. - name: win32 diff --git a/scripts/build.js b/scripts/build.js index 1782d7961..90b8bdc70 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -23,6 +23,11 @@ const variants = [ arch: "x64", tested: true, }, + { + platform: "linux", + arch: "arm64", + tested: false, + }, { platform: "win32", arch: "x64",