Skip to content

remove unused dependencies & add GHA flow#429

Merged
ithinuel merged 1 commit into
rp-rs:mainfrom
ithinuel:remove-unused-dependencies
Aug 26, 2022
Merged

remove unused dependencies & add GHA flow#429
ithinuel merged 1 commit into
rp-rs:mainfrom
ithinuel:remove-unused-dependencies

Conversation

@ithinuel
Copy link
Copy Markdown
Member

@ithinuel ithinuel commented Aug 23, 2022

Should it be made part of the existing jobs or parallel ones?

@ithinuel ithinuel force-pushed the remove-unused-dependencies branch 5 times, most recently from 7693758 to d18b01c Compare August 23, 2022 16:04
@ithinuel ithinuel marked this pull request as ready for review August 23, 2022 16:21
@ithinuel
Copy link
Copy Markdown
Member Author

Either way, it make the checks much much longer, so I'm not sure it's entirely worth it to have it as workflow.
We might just be good having it run manually every now and then.

@ithinuel ithinuel requested review from 9names and jannic August 23, 2022 16:22
Copy link
Copy Markdown
Member

@9names 9names left a comment

Choose a reason for hiding this comment

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

Glad to drop all the unused deps.
Looks like all the extra time is just building cargo-udeps.
I couldn't manage to get toolchain caching working correctly, but it should be possible to do this once and cache it for subsequent runs...

@ithinuel
Copy link
Copy Markdown
Member Author

Seems like the use-tool-cache option is deprecated ( https://github.com/actions-rs/tool-cache/ is archived )
And support using @action/cache has been waiting for about 2years: actions-rs/core#125 and actions-rs/install#5

@9names
Copy link
Copy Markdown
Member

9names commented Aug 25, 2022

Ah. Maybe using a prebuilt version instead? There are binary releases on github (need to untar them though).
I'll check how fast that is...

@9names
Copy link
Copy Markdown
Member

9names commented Aug 25, 2022

takes 1.5 seconds on my machine.
wish i didn't have to encode the version number in the string, maybe we could regex it out somehow but it might be more cursed...

wget -q -O - https://github.com/est31/cargo-udeps/releases/download/v0.1.32/cargo-udeps-v0.1.32-x86_64-unknown-linux-gnu.tar.gz | tar -xz && mv ./cargo-udeps-v0.1.32-x86_64-unknown-linux-gnu/cargo-udeps ~/.cargo/bin && rm ./cargo-udeps-v0.1.32-x86_64-unknown-linux-gnu -r

@ithinuel ithinuel force-pushed the remove-unused-dependencies branch from d18b01c to 9757d62 Compare August 26, 2022 01:14
@ithinuel ithinuel force-pushed the remove-unused-dependencies branch 3 times, most recently from f94b267 to ce6d0e9 Compare August 26, 2022 01:55
@ithinuel
Copy link
Copy Markdown
Member Author

I found https://github.com/aig787/cargo-udeps-action :D seems to work as expected

@ithinuel ithinuel merged commit 13cad64 into rp-rs:main Aug 26, 2022
@ithinuel ithinuel deleted the remove-unused-dependencies branch August 26, 2022 02:42
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