mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-20 17:28:54 +00:00
Reload cache and attempt deploy
This commit is contained in:
parent
afae1f4bc5
commit
bf32d298d1
2 changed files with 7 additions and 13 deletions
11
.github/workflows/build_test.yml
vendored
11
.github/workflows/build_test.yml
vendored
|
@ -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
|
||||
|
|
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue