Skip to content

ci: update github actions, add publish workflow for version tags #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

tommilligan
Copy link
Collaborator

Also adds caching for rust dependencies, which should speed up build times.

This will definitely not work until the following secrets are populated by an admin (@mcobzarenco):

  • GCP_SA_KEY, a GCP Service Account Key which has write access to the gs://reinfer-public bucket
  • CRATES_IO_TOKEN, a crates.io token with publish permissions to the reinfer-cli and reinfer-client crates.

@tommilligan tommilligan requested a review from mcobzarenco July 8, 2020 15:31
@tommilligan tommilligan self-assigned this Jul 8, 2020
scripts/build Outdated
set -ex

cargo check --all-targets --all-features --locked
cargo build --locked --all-targets --all-features
Copy link
Member

Choose a reason for hiding this comment

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

Something I ran into before, suprisingly --all-targets doesn't run doc tests, whereas cargo test would. I don't think we have any examples in the docs, but may be worth adding cargo test --docs ... too so we don't forget.

Also, suuupper nit. the arguments could be in same order

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point - yes, I feel like I've been annoyed about that before.

Have un-nitted the arguments, and removed some duplicate/redundant flags (like, we don't need --all-features because we have no features at the moment).

@tommilligan tommilligan force-pushed the actions-publish branch 2 times, most recently from 77ffbec to 4333869 Compare July 8, 2020 15:52
@tommilligan tommilligan merged commit a2b549f into master Jul 8, 2020
@jcalero jcalero deleted the actions-publish branch January 19, 2022 09:19
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.

2 participants