Browse Source

Merge pull request #112 from zcash/github-workflow

Add a GitHub Actions workflow
master
str4d 5 years ago committed by GitHub
parent
commit
4014f08105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 37
      .github/workflows/rust.yml

37
.github/workflows/rust.yml

@ -0,0 +1,37 @@
name: Rust
on: [push]
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Check formatting
run: cargo fmt --all -- --check
- name: Build
run: cargo build --verbose --release --all
- name: Run tests
run: cargo test --verbose --release --all
macOS:
name: Test on macOS-latest
runs-on: macOS-latest
steps:
- name: Install Rust
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Install rustfmt
run: $HOME/.cargo/bin/rustup component add rustfmt
- uses: actions/checkout@v1
- name: Check formatting
run: $HOME/.cargo/bin/cargo fmt --all -- --check
- name: Build
run: $HOME/.cargo/bin/cargo build --verbose --release --all
- name: Run tests
run: $HOME/.cargo/bin/cargo test --verbose --release --all
Loading…
Cancel
Save