Skip to content

Commit

Permalink
change ci-environment to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
torao committed Jun 12, 2021
1 parent 6f374e5 commit 80d6653
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build TinyMT
on: [push]
jobs:
test:
name: run test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- uses: actions-rs/cargo@v1
with:
command: test
args: --release --all-features
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TinyMT
[![CircleCI](https://circleci.com/gh/torao/tinymt/tree/master.svg?style=shield)](https://circleci.com/gh/torao/tinymt)
[![github actions](https://github.com/torao/tinymt/actions/workflows/build.yml/badge.svg)](https://github.com/torao/tinymt/actions)
[![docs](https://docs.rs/tinymt/badge.svg)](https://docs.rs/tinymt)

Rust implementation of TinyMT 64/32 - a lightweight variant of Mersenne Twister PRNG.
Expand Down

0 comments on commit 80d6653

Please sign in to comment.