Skip to content

Commit

Permalink
Add mac-m1-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
m4heshd committed Feb 6, 2024
1 parent 3488580 commit fec8635
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/mac-m1-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: mac-m1-test

on:
workflow_dispatch:
inputs:
runtime:
description: 'Prebuild runtime'
type: choice
required: true
default: node
options:
- node
- electron
targets:
description: 'Runtime versions (targets)'
required: true
default: -t 18.0.0

env:
TEST_COMMAND: npx --no-install prebuild -r ${{ inputs.runtime }} ${{ inputs.targets }} --include-regex 'better_sqlite3.node$'

jobs:
prebuild-test:
name: Testing prebuild on macos-14 (M1)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: python3 -m pip install setuptools
- run: npm install --ignore-scripts
- run: ${{ env.TEST_COMMAND }}

0 comments on commit fec8635

Please sign in to comment.