robo9k / rust-magic-sys

Rust declarations crate for the `libmagic` C library
Apache License 2.0
10 stars 6 forks source link

Add CI workflow to test upstream `libmagic` versions #48

Closed robo9k closed 1 year ago

robo9k commented 1 year ago

This is meant to manually test building against a certain upstream libmagic version. For debugging it uploads the generated magic.h, libmagic.pc and magic.mgc as an artifact.

It also serves as an example of how to use a specific custom libmagic with pkg-config.

robo9k commented 1 year ago

Despite --all-features enabling v5-40 this tests successful against libmagic 5.39 since the then added MAGIC_PARAM_ENCODING_MAX is not used in any #[test], e.g. neither test_magic_setparam nor test_magic_getparam.

I'm not sure if I want to add tests that test such details, at least for now.