Skip to content

Commit

Permalink
publish with generated index.* from Linux build in node-packaging CI
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Oct 11, 2024
1 parent 6c1c577 commit 96d51e0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/node-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,18 @@ jobs:
run: ${{ matrix.settings.build }}
if: ${{ !matrix.settings.docker }}
shell: bash
- name: Upload artifact
- name: Upload native module as artifact
uses: actions/upload-artifact@v4
with:
name: bindings-${{ matrix.settings.target }}
path: ${{ env.ARTIFACT_PATH }}
if-no-files-found: error
- name: Upload generated index.* as artifact
if: matrix.settings.target == 'armv7-unknown-linux-gnueabihf'
uses: actions/upload-artifact@v4
with:
name: generated-index
path: rf24-node/index.*

universal-macOS:
name: Build universal macOS binary
Expand Down Expand Up @@ -189,10 +195,16 @@ jobs:
cache: yarn
- name: Install dependencies
run: yarn install
- name: Download all artifacts
- name: Download native artifacts
uses: actions/download-artifact@v4
with:
pattern: binding-*
path: rf24-node/artifacts
- name: Download generated index artifact
uses: actions/download-artifact@v4
with:
name: generated-index
path: rf24-node
- name: Move artifacts
run: yarn artifacts
- name: List packages
Expand Down
5 changes: 4 additions & 1 deletion rf24-node/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ dist
.AppleDouble
.LSOverride

# Icon must end with two
# Icon must end with two
Icon


Expand Down Expand Up @@ -195,3 +195,6 @@ Cargo.lock
!.yarn/versions

*.node

# generated by napi-rs
index.*

0 comments on commit 96d51e0

Please sign in to comment.