Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
feat: add MacOS ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Jan 31, 2024
1 parent 884547b commit 116fd12
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: macos-latest
runs-on: ${{ matrix.macos }}

strategy:
fail-fast: false
Expand All @@ -18,6 +18,9 @@ jobs:
- 18
- 19
- 20
macos:
- macos-12
- macos-14

steps:
- uses: actions/checkout@v3
Expand All @@ -36,7 +39,13 @@ jobs:
run: npm test

- uses: actions/upload-artifact@v3
if: github.repository_owner == 'sass' && github.event_name != 'pull_request'
if: github.repository_owner == 'sass' && github.event_name != 'pull_request' && matrix.macos == 'macos-12'
with:
name: ${{ matrix.node }}
name: ${{ matrix.node }}-x64
path: vendor/

- uses: actions/upload-artifact@v3
if: github.repository_owner == 'sass' && github.event_name != 'pull_request' && matrix.macos == 'macos-14'
with:
name: ${{ matrix.node }}-arm64
path: vendor/
1 change: 1 addition & 0 deletions lib/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function getHumanArchitecture(arch) {
case 'ia32': return '32-bit';
case 'x86': return '32-bit';
case 'x64': return '64-bit';
case 'arm64': return 'ARM';
default: return false;
}
}
Expand Down

0 comments on commit 116fd12

Please sign in to comment.