Add --tag-uv and --strip to prebuildify. #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build_and_test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: # macos-latest -> arm64, macos-13 -> x64 | |
os: [windows-latest, ubuntu-latest, macos-latest, macos-13] | |
#os: [macos-13, macos-latest] | |
#os: [macos-latest] | |
# < 16 not available in testing images | |
node-version: [22, 20, 18] | |
#node-version: [22] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: install dependencies and test | |
shell: bash | |
run: | | |
npm install | |
npm test | |
- name: prebuild | |
shell: bash | |
run: | | |
npm run prebuild | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ref-napi-prebuild-${{ matrix.os }}-${{ matrix.node-version }} | |
path: prebuilds/ # or path/to/artifact | |