fix(hci): update hci socket to v1.4.1 and cleanups #59
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: Build | |
on: | |
push: | |
pull_request: | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
prebuild: | |
strategy: | |
matrix: | |
include: | |
- name: darwin | |
os: macos-12 | |
node: x64 | |
command: prebuildify | |
args: --arch x64+arm64 | |
- name: win32-x86 | |
os: windows-2019 | |
node: x86 | |
command: prebuildify | |
- name: win32-x64 | |
os: windows-2019 | |
node: x64 | |
command: prebuildify | |
- name: linux-x64 | |
os: ubuntu-latest | |
command: prebuildify-cross | |
args: -i centos7-devtoolset7 -i alpine | |
- name: linux-arm | |
os: ubuntu-latest | |
command: prebuildify-cross | |
args: -i linux-arm64-lts -i linux-armv7 -i linux-armv6 | |
- name: android-arm | |
os: ubuntu-latest | |
command: prebuildify-cross | |
args: -i android-arm64 -i android-armv7 | |
name: Build ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- if: matrix.node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
architecture: ${{ matrix.node }} | |
- uses: actions/checkout@v4 | |
- run: npm ci | |
- run: npm run ${{ matrix.command }} -- ${{ matrix.args }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: build-artifacts-${{ matrix.name }} | |
path: prebuilds/ | |
if-no-files-found: error | |
- if: failure() | |
run: npx shx ls -lA | |
release: | |
needs: prebuild | |
name: Release | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
path: prebuilds | |
pattern: build-artifacts-* | |
merge-multiple: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- run: npm ci | |
- run: npm run semantic-release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |