Reload cache and attempt deploy

This commit is contained in:
Natsu Kagami 2020-06-27 21:38:33 -04:00
parent afae1f4bc5
commit bf32d298d1
Signed by: nki
GPG key ID: 73376E117CD20735
2 changed files with 7 additions and 13 deletions

View file

@ -19,13 +19,6 @@ jobs:
with:
toolchain: stable
components: rustfmt
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run rustfmt
run: cargo fmt -- --check
check:
@ -43,7 +36,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo check
run: cargo check
- name: Run clippy
@ -62,6 +55,6 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo test
run: cargo test

View file

@ -1,8 +1,9 @@
name: Deploy
on:
push:
branches: [ master ]
# on:
# push:
# branches: [ master ]
on: [ push ]
jobs:
deploy:
@ -19,7 +20,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
- name: Build release
run: cargo build --release
- name: Upload binary