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:
|
||||
CI:
|
||||
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:
|
||||
run:
|
||||
shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
|
||||
@ -12,8 +21,8 @@ jobs:
|
||||
- name: Dependencies
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
architecture: arm64
|
||||
node-version: ${{ matrix.nodejs_version }}
|
||||
architecture: ${{ matrix.nodejs_architecture }}
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Install
|
||||
@ -21,7 +30,7 @@ jobs:
|
||||
- name: Test
|
||||
run: npm test
|
||||
- name: Prebuild
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
if: matrix.prebuild && startsWith(github.ref, 'refs/tags/')
|
||||
env:
|
||||
prebuild_upload: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: npx prebuild --runtime napi --target 5
|
||||
|
Loading…
x
Reference in New Issue
Block a user