-
-
Notifications
You must be signed in to change notification settings - Fork 891
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
Add worklfows for building npm package for curaengine #2177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments about using the conan version in this PR. I will however merge this PR already as discussed such that you can trigger the changed workflow in your new PR
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of branch I would have conan id: curaengine/5.9.0@_/_
or curaengine/latest@testing/main
packages: write | ||
|
||
steps: | ||
- name: Checkout code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to check out if you use the conan version ⬆️
- name: Get Conan configuration | ||
run: | | ||
conan config install https://github.com/Ultimaker/conan-config.git | ||
conan config install https://github.com/Ultimaker/conan-config.git -a "-b NP-419" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use the conan config install https://github.com/Ultimaker/conan-config.git -a "-b runner/${{ runner.os }}/${{ runner.arch }}"
now.
Otherwise you end up using your experimental emsdk versions
"description": "CuraEngineJS a TS component to run CuraEngine in a browser", | ||
"main": "src/CuraEngine.js", | ||
"scripts": { | ||
"install_curaengine": "conan install ${npm_package_config_conan_package} -s build_type=Release --build=missing --update -c tools.build:skip_test=True -pr:h cura_wasm.jinja -if src && rm -f src/*conan*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the install script now in the package.json but in the workflow and use the conan version id ⬆️
NP-549