buildinfy
Want easy access to CI variables such as revision, pipeline number, CI job name, target platform, and Sentry DSN? This crate provide just that for GitLab, Gitea, and GitHub.
// returns branch name: `main`, `stable`...
;
// returns CI run number: e.g. `123`.
build_pipeline_id_per_project ;
// returns CI job name: e.g. `package-debian-amd64`.
;
// returns owner and repository name: e.g. bitpowder/indigo-ng.
;
// returns the `SENTRY_DSN` variable, useful to configure crash reporting in certain builds.
;
// returns platform: linux, freebsd, win, mac, unix, other (useful for auto updating URLs)
;