ci: Rebuild xtask when workspace Cargo.toml changes
… because dependencies from `[workspace.dependencies]` can affect it.
This commit is contained in:
parent
d18bea570c
commit
560326c2c4
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
id: xtask-cache
|
id: xtask-cache
|
||||||
with:
|
with:
|
||||||
path: target/debug/xtask
|
path: target/debug/xtask
|
||||||
key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }}
|
key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }}
|
||||||
|
|
||||||
- name: Install rust stable toolchain
|
- name: Install rust stable toolchain
|
||||||
if: steps.xtask-cache.outputs.cache-hit != 'true'
|
if: steps.xtask-cache.outputs.cache-hit != 'true'
|
||||||
@ -67,7 +67,7 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: target/debug/xtask
|
path: target/debug/xtask
|
||||||
key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }}
|
key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }}
|
||||||
|
|
||||||
- name: Run lints
|
- name: Run lints
|
||||||
run: target/debug/xtask ci lint
|
run: target/debug/xtask ci lint
|
||||||
@ -123,7 +123,7 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: target/debug/xtask
|
path: target/debug/xtask
|
||||||
key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }}
|
key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }}
|
||||||
|
|
||||||
- name: Run checks
|
- name: Run checks
|
||||||
run: target/debug/xtask ci ${{ matrix.cmd }}
|
run: target/debug/xtask ci ${{ matrix.cmd }}
|
||||||
@ -170,7 +170,7 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: target/debug/xtask
|
path: target/debug/xtask
|
||||||
key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }}
|
key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }}
|
||||||
|
|
||||||
- name: Run checks
|
- name: Run checks
|
||||||
run: target/debug/xtask ci ${{ matrix.cmd }}
|
run: target/debug/xtask ci ${{ matrix.cmd }}
|
||||||
@ -218,7 +218,7 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: target/debug/xtask
|
path: target/debug/xtask
|
||||||
key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }}
|
key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }}
|
||||||
|
|
||||||
- name: Run checks
|
- name: Run checks
|
||||||
run: target/debug/xtask ci ${{ matrix.cmd }}
|
run: target/debug/xtask ci ${{ matrix.cmd }}
|
||||||
@ -245,7 +245,7 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: target/debug/xtask
|
path: target/debug/xtask
|
||||||
key: xtask-${{ hashFiles('xtask/src/**', 'xtask/Cargo.toml') }}
|
key: xtask-${{ hashFiles('Cargo.toml', 'xtask/src/**', 'xtask/Cargo.toml') }}
|
||||||
|
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
run: target/debug/xtask doc --deny-warnings
|
run: target/debug/xtask doc --deny-warnings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user