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

Commit 116fd12

Browse files
committed
feat: add MacOS ARM
1 parent 884547b commit 116fd12

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/macos.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: macos-latest
11+
runs-on: ${{ matrix.macos }}
1212

1313
strategy:
1414
fail-fast: false
@@ -18,6 +18,9 @@ jobs:
1818
- 18
1919
- 19
2020
- 20
21+
macos:
22+
- macos-12
23+
- macos-14
2124

2225
steps:
2326
- uses: actions/checkout@v3
@@ -36,7 +39,13 @@ jobs:
3639
run: npm test
3740

3841
- uses: actions/upload-artifact@v3
39-
if: github.repository_owner == 'sass' && github.event_name != 'pull_request'
42+
if: github.repository_owner == 'sass' && github.event_name != 'pull_request' && matrix.macos == 'macos-12'
4043
with:
41-
name: ${{ matrix.node }}
44+
name: ${{ matrix.node }}-x64
45+
path: vendor/
46+
47+
- uses: actions/upload-artifact@v3
48+
if: github.repository_owner == 'sass' && github.event_name != 'pull_request' && matrix.macos == 'macos-14'
49+
with:
50+
name: ${{ matrix.node }}-arm64
4251
path: vendor/

lib/extensions.js

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function getHumanArchitecture(arch) {
4343
case 'ia32': return '32-bit';
4444
case 'x86': return '32-bit';
4545
case 'x64': return '64-bit';
46+
case 'arm64': return 'ARM';
4647
default: return false;
4748
}
4849
}

0 commit comments

Comments
 (0)