From 69663355370e00b205ac870378f0a1abf9ff98fb Mon Sep 17 00:00:00 2001 From: Sascha Mann Date: Sat, 21 May 2022 21:50:58 +0200 Subject: [PATCH] Add support for aarch64 (#102) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Setting the `arch` input to `aarch64` will install `aarch64` binaries, intended to be used on aarch64-based self-hosted runners. Please note that we currently don't run test builds on that architecture, so we cannot guarantee that the input won't break randomly, although there is no reason why it would. In a future update, we may choose a default architecture based on the arch of the runner. Thanks to @giordano for providing a self-hosted runner for testing. Co-authored-by: Mosè Giordano --- README.md | 6 +++++- lib/installer.js | 3 ++- package-lock.json | 1 + src/installer.ts | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ba8d8c4..f436163 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,11 @@ This action sets up a Julia environment for use in actions by downloading a spec # The architecture of the Julia binaries. # - # Supported values: x64 | x86 + # Please note that installing aarch64 binaries only makes sense on self-hosted aarch64 runners. + # We currently don't run test builds on that architecture, so we cannot guarantee that the input won't break randomly, + # although there is no reason why it would. + # + # Supported values: x64 | x86 | aarch64 (untested) # # Default: x64 arch: '' diff --git a/lib/installer.js b/lib/installer.js index 8034a17..e97e625 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -32,7 +32,8 @@ const osMap = { }; const archMap = { 'x86': 'i686', - 'x64': 'x86_64' + 'x64': 'x86_64', + 'aarch64': 'aarch64' }; // Store information about the environment const osPlat = os.platform(); // possible values: win32 (Windows), linux (Linux), darwin (macOS) diff --git a/package-lock.json b/package-lock.json index 6cc2cd8..26147bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "setup-julia", "version": "1.6.1", "license": "MIT", "dependencies": { diff --git a/src/installer.ts b/src/installer.ts index 77ec49b..8a1e94b 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -18,7 +18,8 @@ const osMap = { } const archMap = { 'x86': 'i686', - 'x64': 'x86_64' + 'x64': 'x86_64', + 'aarch64': 'aarch64' } // Store information about the environment