Skip to content

Commit

Permalink
Issue 337: Automate cargo publish check (#339)
Browse files Browse the repository at this point in the history
Signed-off-by: Sandeep <[email protected]>
  • Loading branch information
shrids authored Nov 18, 2021
1 parent 1c5848a commit 792b81d
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 5 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/publish_check.yml
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
4 changes: 2 additions & 2 deletions .github/workflows/tagPublish.yml
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:
Expand Down
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "pravega-rust-client-examples"
name = "pravega-client-examples"
version = "0.3.1"
edition = "2018"
categories = ["network-programming"]
Expand Down
2 changes: 2 additions & 0 deletions macros/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# macros
Macros used by Pravega client.
4 changes: 2 additions & 2 deletions pravegactl/Cargo.toml
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]>"]

Expand Down

0 comments on commit 792b81d

Please sign in to comment.