Skip to content

npuzone: use buildomat for determining versions of things #20

Description

@rcgoodfellow

replace this

softnpu/src/bin/npuzone.rs

Lines 157 to 185 in dbab082

async fn fetch_head_softnpu_commit(branch: &str) -> anyhow::Result<String> {
Ok(octocrab::instance()
.repos("oxidecomputer", "softnpu")
.list_commits()
.branch(branch)
.page(1u32)
.per_page(1)
.send()
.await?
.take_items()[0]
.sha
.clone())
}
async fn fetch_head_sidecar_lite_commit(
branch: &str,
) -> anyhow::Result<String> {
Ok(octocrab::instance()
.repos("oxidecomputer", "sidecar-lite")
.list_commits()
.branch(branch)
.page(1u32)
.per_page(1)
.send()
.await?
.take_items()[0]
.sha
.clone())
}

with calls to buildomat to avoid rate limiting

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions