awesome-rust/.github/workflows/rust.yml

33 lines
660 B
YAML
Raw Normal View History

2021-01-31 12:46:10 +00:00
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2021-05-05 21:04:07 +00:00
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions/cache@v2
with:
path: results/results.yaml
key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}
restore-keys: |
results-${{ hashFiles('Cargo.lock') }}
results-
2021-01-31 12:46:10 +00:00
- name: Build
run: cargo run