Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodejs sdk #206

Merged
merged 31 commits into from
Feb 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
try rm pre-build
albho committed Jan 26, 2024
commit 7e518a89376400d50db3e0aade395cacae7b8c9a
8 changes: 1 addition & 7 deletions .github/workflows/nodejs-demos.yml
Original file line number Diff line number Diff line change
@@ -39,9 +39,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn

- name: Install dependencies
run: yarn install

@@ -53,14 +50,11 @@ jobs:

strategy:
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]

steps:
- uses: actions/checkout@v3

- name: Pre-build dependencies
run: npm install --global yarn

- name: Install dependencies
run: yarn install

13 changes: 2 additions & 11 deletions binding/nodejs/copy.js
Original file line number Diff line number Diff line change
@@ -10,22 +10,13 @@
//
'use strict';

const fs = require('fs');
const { mkdirp } = require('mkdirp');
const ncp = require('ncp').ncp;

const createDirectory = dir => {
try {
fs.mkdirSync(dir, { recursive: true });
console.log(`Directory '${dir}' created.`);
} catch (err) {
console.error(`Error creating directory '${dir}':`, err);
}
};

console.log('Copying library files...');

// Library & Model
createDirectory('./lib');
mkdirp.sync('./lib/common');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cobra doesn't have a .pv file so no copies from lib common are needed


ncp('../../lib/node', './lib', function (err) {
if (err) {