Skip to content

Commit

Permalink
Added support for macos-14
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 2, 2024
1 parent b349268 commit 0a7a459
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-20.04, macos-12, macos-11, windows-2022, windows-2019]
os: [macos-14]
elasticsearch-version: [8, 7]
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ function isWindows() {
function getUrl() {
let url;
if (process.platform == 'darwin') {
url = `https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${elasticsearchVersion}-darwin-x86_64.tar.gz`;
if (process.arch == 'arm64') {
url = `https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${elasticsearchVersion}-darwin-aarch64.tar.gz`;
} else {
url = `https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${elasticsearchVersion}-darwin-x86_64.tar.gz`;
}
} else if (isWindows()) {
url = `https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${elasticsearchVersion}-windows-x86_64.zip`;
} else {
Expand Down

0 comments on commit 0a7a459

Please sign in to comment.