Skip to content

Commit

Permalink
support aarch64 arch (apple silicon) (#57)
Browse files Browse the repository at this point in the history
* support aarch64 arch

* Update mega-linter.yml

---------

Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com>
  • Loading branch information
djukxe and nvuillam authored Nov 26, 2023
1 parent abce6ae commit 9467ee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

# Upload MegaLinter artifacts
- name: Archive production artifacts
if: ${{ success() }} || ${{ failure() }}
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: MegaLinter reports
Expand Down
5 changes: 3 additions & 2 deletions lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ function install(version = 8, options = {}) {
if (!options.arch) {
if (/^ppc64|s390x|x32|x64$/g.test(process.arch))
options.arch = process.arch;
else if (process.arch === "ia32") options.arch = "x32";
else return Promise.reject(new Error("Unsupported architecture"));
else if (process.arch === "ia32") options.arch = "x32";
else if (process.arch === "arm64") options.arch = "aarch64";
else return Promise.reject(new Error("Unsupported architecture"));
}

const url =
Expand Down

0 comments on commit 9467ee0

Please sign in to comment.