mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
CI: add Rosetta-emulated x64
This commit is contained in:
parent
884947a069
commit
3b370b6c01
15
.github/workflows/ci-darwin-arm64v8.yml
vendored
15
.github/workflows/ci-darwin-arm64v8.yml
vendored
@ -5,6 +5,15 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
CI:
|
CI:
|
||||||
runs-on: macos-m1
|
runs-on: macos-m1
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- nodejs_version: 12
|
||||||
|
nodejs_architecture: x64
|
||||||
|
- nodejs_version: 16
|
||||||
|
nodejs_architecture: arm64
|
||||||
|
prebuild: true
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
|
shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
|
||||||
@ -12,8 +21,8 @@ jobs:
|
|||||||
- name: Dependencies
|
- name: Dependencies
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: ${{ matrix.nodejs_version }}
|
||||||
architecture: arm64
|
architecture: ${{ matrix.nodejs_architecture }}
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install
|
- name: Install
|
||||||
@ -21,7 +30,7 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: npm test
|
run: npm test
|
||||||
- name: Prebuild
|
- name: Prebuild
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: matrix.prebuild && startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
prebuild_upload: ${{ secrets.GITHUB_TOKEN }}
|
prebuild_upload: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: npx prebuild --runtime napi --target 5
|
run: npx prebuild --runtime napi --target 5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user