-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 337: Automate cargo publish check (#339)
Signed-off-by: Sandeep <[email protected]>
- Loading branch information
Showing
5 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This action is meant to be triggered manually via the GitHub UI | ||
name: Cargo publish Check | ||
on: | ||
push: | ||
tags: | ||
- "*" # Run this validation on release tags | ||
|
||
jobs: | ||
release: | ||
name: Run cargo-release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache toolchain | ||
uses: actions/cache@v1 | ||
with: | ||
path: /usr/share/rust/.cargo | ||
key: ${{ runner.os }}-rustup | ||
- name: Cache cargo registry | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }} | ||
- name: Cache cargo index | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.toml') }} | ||
- name: Cache cargo build | ||
uses: actions/cache@v1 | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }} | ||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- name: Install cargo-release | ||
run: cargo install cargo-release | ||
- name: Release (Dry Run) | ||
run: cargo release --workspace -vv --exclude pravega-client-integration-test --exclude pravega-client-examples --exclude pravegactl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: packaging | ||
name: packaging and publish to pypi | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
- '*' | ||
|
||
jobs: | ||
wheel: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# macros | ||
Macros used by Pravega client. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[package] | ||
name = "pravegactl" | ||
version = "0.0.1" | ||
version = "0.3.1" | ||
edition = "2018" | ||
categories = ["network-programming"] | ||
keywords = ["streaming", "client", "pravega"] | ||
readme = "Readme.md" | ||
repository = "https://github.com/pravega/pravega-client-rust" | ||
license = "Apache-2.0" | ||
description = "The integration test for pravega rust client." | ||
description = "A Pravega command-line tool, pravegactl, it allows you to run commands against Pravega clusters" | ||
authors = ["Tom Kaitchuck <[email protected]>", "Wenqi Mou <[email protected]>", | ||
"Sandeep Shridhar <[email protected]>"] | ||
|
||
|