-
Notifications
You must be signed in to change notification settings - Fork 92
feat(ci): Add tasks for checking and updating Rust lock file (Cargo.lock); Add check to GH workflow.
#1448
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
feat(ci): Add tasks for checking and updating Rust lock file (Cargo.lock); Add check to GH workflow.
#1448
Changes from all commits
306bbea
15cd106
7fa8871
77f5bc0
e7be8c2
438ed6e
317bad8
48fef4e
71f4948
bd79171
8754cf9
723ec56
ff1a813
ee8050f
df1a529
9bb5948
3c8d9e8
e47b216
3674742
c6785a5
d1519fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| version: "3" | ||
|
|
||
| includes: | ||
| toolchains: "../toolchains.yaml" | ||
|
|
||
| tasks: | ||
| check-rust: | ||
| cmds: | ||
| - task: "cargo-workspace-update" | ||
| vars: | ||
| CARGO_UPDATE_FLAGS: "--locked" | ||
|
|
||
| update-rust: | ||
| cmds: | ||
| - task: "cargo-workspace-update" | ||
| vars: | ||
| CARGO_UPDATE_FLAGS: "" | ||
|
|
||
| # Runs `cargo update` in the root Rust workspace directory with the specified flags. | ||
| # | ||
| # @param {string} CARGO_UPDATE_FLAGS The flags to pass to the `cargo update` command. | ||
| cargo-workspace-update: | ||
| internal: true | ||
| requires: | ||
| vars: ["CARGO_UPDATE_FLAGS"] | ||
| dir: "{{.ROOT_DIR}}" | ||
| deps: ["toolchains:rust"] | ||
| cmd: |- | ||
| . "$HOME/.cargo/env" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just curious, do we have plans to install rust into
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer to install to the user's home directory:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, we discussed this when @LinZhihao-723 was initially adding the task. I do think it's worth documenting somewhere though. Did we add it to the package build docs?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No we haven't. I will do it in a separate PR.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @coderabbitai Please create an issue for us to document new Rust components in CLP package. In this doc we should mention our installation approach for cargo toolchain.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: Length of output: 42 @LinZhihao-723, I've created issue #1461 to track the documentation of Rust components and the cargo toolchain installation approach. The issue has been assigned to you and includes references to this PR and discussion. 🔗 #1461 |
||
| cargo update {{.CARGO_UPDATE_FLAGS}} | ||
Uh oh!
There was an error while loading. Please reload this page.