pyswmm / Stormwater-Management-Model

PySWMM Stormwater Management Model repository
Other
99 stars 77 forks source link

Add toolkit function for build info in json format #356

Open michaeltryby opened 2 years ago

michaeltryby commented 2 years ago
{
    "project": "SWMM",
    "organization": "Open_Water_Analytics",
    "version": {
        "string": "5.1.14",
        "major": "5",
        "minor": "1",
        "patch": "14"
    },
    "git_hash": "6d74d607553c3edc7004192b6e847fa79cbd117d",
    "platform": "Darwin",
    "complier": {
        "id": "AppleClang",
        "version": "13.0.0.13000029"
    },
    "build_id": "2021-11-08T16:06:48Z"
}

We could simplify the CI scripts using something like this.

michaeltryby commented 2 years ago
/**
 @brief Get Build Info
 @param[out]
 @returns error code
 */
EXPORT_TOOLKIT int swmm_getBuildInfo(char *dest);