hyper/.github/workflows/macos-build.yml
Gellert Hegyi 07b34e744a initial
2024-11-03 09:05:52 +01:00

40 lines
732 B
YAML

name: electron-drag-click
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Install Xcode Command Line Tools
run: |
xcode-select --install || true
- name: Install dependencies
run: npm ci
- name: Verify native module build
run: |
npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: native-module-20.x
path: |
build/
*.node
retention-days: 7