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

View file

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