mirror of
https://github.com/lovell/sharp.git
synced 2025-07-18 14:30:14 +02:00
37 lines
992 B
YAML
37 lines
992 B
YAML
name: CI (MacStadium)
|
|
on:
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
CI:
|
|
runs-on: macos-m1
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- nodejs_version: 14
|
|
nodejs_architecture: x64
|
|
- nodejs_version: 18
|
|
nodejs_architecture: arm64
|
|
prebuild: true
|
|
defaults:
|
|
run:
|
|
shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
|
|
steps:
|
|
- name: Dependencies
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.nodejs_version }}
|
|
architecture: ${{ matrix.nodejs_architecture }}
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Install
|
|
run: npm install --build-from-source --unsafe-perm
|
|
- name: Test
|
|
run: npm test
|
|
- name: Prebuild
|
|
if: matrix.prebuild && startsWith(github.ref, 'refs/tags/')
|
|
env:
|
|
prebuild_upload: ${{ secrets.GITHUB_TOKEN }}
|
|
run: npx prebuild --runtime napi --target 5
|