2021-01-31 14:46:10 +02: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 23:04:07 +02: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: |
|
2021-05-05 23:21:23 +02:00
|
|
|
results-${{ hashFiles('Cargo.lock') }}-
|
2021-05-05 23:04:07 +02:00
|
|
|
results-
|
2021-01-31 14:46:10 +02:00
|
|
|
- name: Build
|
2021-05-05 23:34:47 +02:00
|
|
|
run: cargo build
|
2021-05-05 23:29:32 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-05-05 23:34:47 +02:00
|
|
|
RUST_LOG: warn
|