orhun / binsider

Analyze ELF binaries like a boss 😼🕵️‍♂️
https://binsider.dev/
Apache License 2.0
2.76k stars 61 forks source link

chore(ci): add nix flake build #75

Closed ch4og closed 1 month ago

ch4og commented 1 month ago

Description of change

Adds flake building to CI

Help is needed to add rust-cache support

ch4og commented 1 month ago

AFAIK pkgs.rustPlatform.buildRustPackage can't use rust-cache so I have no idea what can be done

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 3.33%. Comparing base (4bc6b7a) to head (b998cde). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #75 +/- ## ===================================== Coverage 3.33% 3.33% ===================================== Files 19 19 Lines 2407 2407 ===================================== Hits 80 80 Misses 2327 2327 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

orhun commented 1 month ago

Maybe @jla2000 or @Titaniumtown has an idea about this

jla2000 commented 1 month ago

@ch4og I think you will need to cache the nix store.

Titaniumtown commented 1 month ago

Maybe @jla2000 or @Titaniumtown has an idea about this

I'm not too familiar with using nix with github actions, srry :(

ch4og commented 1 month ago

@ch4og I think you will need to cache the nix store.

Doesn't nix magic cache do this?

ch4og commented 1 month ago

Should be good to merge

Caching nix store using other way worked. It uses cache after first build now

But this build time can be decreased even more with https://github.com/orhun/binsider/pull/76