Skip to content

Conversation

ctaggart
Copy link
Contributor

@ctaggart ctaggart commented Jul 5, 2022

This consolidates the scripts used to do the code generation into an executable. It is a direct port. This will open up the door for adding additional args.

@cataggar cataggar requested a review from bmc-msft July 5, 2022 14:05
Comment on lines +86 to +104
fn gen_workflow_publish_sdks() -> Result<()> {
let packages = &vec![
"azure_core",
"azure_data_cosmos",
"azure_data_tables",
"azure_identity",
"azure_iot_hub",
"azure_messaging_eventgrid",
"azure_messaging_servicebus",
"azure_security_keyvault",
"azure_storage",
"azure_storage_blobs",
"azure_storage_datalake",
"azure_storage_queues",
];
let yml = PublishSdksYml { packages };
yml.create("../../.github/workflows/publish-sdks.yml")?;
Ok(())
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels weird that configs for the SDK crates are written by azure-autorust.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. It is behind a --publish arg and I'm the only one who runs it. It would be nice to keep the creation of the workflows together. It just saves me time. I can move this back into an example if you would prefer that.

@cataggar cataggar merged commit 872e58a into Azure:main Jul 5, 2022
@ctaggart ctaggart deleted the azure-autorust branch August 2, 2022 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants