-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Turn back on llm gpu features #1740
Conversation
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
8127c82
to
eb6e873
Compare
@@ -115,7 +115,7 @@ jobs: | |||
|
|||
- name: build release | |||
shell: bash | |||
run: cargo build --all-features --release ${{ matrix.config.extraArgs }} | |||
run: cargo build --release ${{ matrix.config.extraArgs }} |
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.
Removed --all-features
completely since I think we just want default
features for release artifacts.
outbound-pg-tests = [] | ||
outbound-mysql-tests = [] |
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.
It looks like these were unused.
@@ -41,7 +41,7 @@ jobs: | |||
|
|||
- name: Cargo Clippy | |||
run: | |||
BUILD_SPIN_EXAMPLES=0 cargo clippy --workspace --all-targets --all-features -- -D warnings | |||
BUILD_SPIN_EXAMPLES=0 cargo clippy --workspace --all-targets --features all-tests -- -D warnings |
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.
does this mean we are going to run clippy only for test 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 - features are additive so this is "all default features plus the 'all-tests' features". With --features all-tests
we run clippy against strictly more code code than without it.
Turns back on the off-by-default features for building llm GPU support (metal and cuda based).
This tweaks CI to not build with "--all-features" but instead an "--features all-tests". In the future, we might want to consolidate our test feature flags into one feature flag.