Skip to content

Add Workflow file for Github Actions #5

Add Workflow file for Github Actions

Add Workflow file for Github Actions #5

Workflow file for this run

name: Rust
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --release
- name: Run tests
run: cargo test --verbose