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

Add worklfows for building npm package for curaengine #2177

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Conversation

casperlamboo
Copy link
Contributor

NP-549

Copy link
Member

@jellespijker jellespijker left a 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:
Copy link
Member

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
Copy link
Member

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"
Copy link
Member

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*",
Copy link
Member

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 ⬆️

@jellespijker jellespijker marked this pull request as ready for review November 27, 2024 13:31
@jellespijker jellespijker merged commit 53ee9fd into main Nov 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants