Skip to content

Commit

Permalink
Add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
theryangeary committed Sep 26, 2021
1 parent 5c41a47 commit da3b193
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Create Releases

on:
push:
tags:
- v*

env:
RUSTFLAGS: -Dwarnings

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Check style
run: cargo fmt -- --check

- name: Run unit tests
run: cargo test --verbose

- name: Create GitHub release
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ''
draft: false
prerelease: false

- name: Create crates.io release
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Rust

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Check style
run: cargo fmt -- --check

- name: Lint
run: cargo clippy

- name: Build
run: cargo build --verbose

- name: Run unit tests
run: cargo test --verbose
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
[package]
name = "vizz"
version = "0.1.0"
authors = ["Ryan Geary <[email protected]>"]
edition = "2018"
description = "Tool for creating GraphViz/DOT visualizations of Rust data structures"
license = "MIT OR Apache-2.0"
homepage = "https://crates.io/crates/vizz"
documentation = "https://docs.rs/vizz"
repository = "https://github.com/theryangeary/vizz"
readme = "README.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit da3b193

Please sign in to comment.