baoyachi / shadow-rs

A build-time information stored in your rust project.(binary,lib,cdylib,dylib)
https://docs.rs/shadow-rs
MIT License
411 stars 39 forks source link

GitLab/Github CI support #90

Open jaskij opened 2 years ago

jaskij commented 2 years ago

GitLab CI exposes a fair number of information about the job in the form of environment variables. Would you be open to supporting them behind a feature flag? Something similar probably goes for GitHub, but I have no experience with their CI.

baoyachi commented 2 years ago

I would like to.

Could you please provide detail example about?

jaskij commented 2 years ago

Here's the full reference.

Not all of the might be applicable, definitely CI_JOB_* and CI_PIPELINE_* are probably reasonable. CI_COMMIT_* is probably redundant. I'd exclude authorization-related stuff.