ci: also include toml files

This commit is contained in:
Ryan 2025-03-12 18:30:52 -04:00
parent b794cda10b
commit f9884227ef
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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