ci: also include toml files
This commit is contained in:
parent
b794cda10b
commit
f9884227ef
3
.github/workflows/build.yaml
vendored
3
.github/workflows/build.yaml
vendored
@ -3,6 +3,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "**.rs"
|
- "**.rs"
|
||||||
|
- "**.toml"
|
||||||
- "Cargo.*"
|
- "Cargo.*"
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -32,7 +33,7 @@ jobs:
|
|||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: build-${{ matrix.os }}-${{ hashFiles('Cargo.*') }}
|
key: build-${{ matrix.os }}-${{ hashFiles('**.toml', 'Cargo.*') }}
|
||||||
|
|
||||||
- name: Switch to nightly toolchain
|
- name: Switch to nightly toolchain
|
||||||
run: rustup default nightly
|
run: rustup default nightly
|
||||||
|
3
.github/workflows/lint.yaml
vendored
3
.github/workflows/lint.yaml
vendored
@ -3,6 +3,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "**.rs"
|
- "**.rs"
|
||||||
|
- "**.toml"
|
||||||
- "Cargo.*"
|
- "Cargo.*"
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -46,7 +47,7 @@ jobs:
|
|||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: build-${{ runner.os }}-${{ hashFiles('Cargo.*') }}
|
key: build-${{ matrix.os }}-${{ hashFiles('**.toml', 'Cargo.*') }}
|
||||||
|
|
||||||
- name: Switch to nightly toolchain
|
- name: Switch to nightly toolchain
|
||||||
run: rustup default nightly
|
run: rustup default nightly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user