mirror of
https://github.com/rust-unofficial/awesome-rust
synced 2024-11-04 12:00:12 +00:00
35 lines
722 B
YAML
35 lines
722 B
YAML
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
|
|
- 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-
|
|
- name: Build
|
|
run: cargo run
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|