Skip to content

Commit 947d3f9

Browse files
committed
add timeout to miri job in CI (#4743)
# Objective - When Miri is failing, it can be very slow to do so <img width="1397" alt="Screenshot 2022-05-14 at 03 05 40" src="https://user-images.githubusercontent.com/8672791/168405111-c5e27d63-7a5a-4a5e-b679-abbeeb3201d2.png"> ## Solution - Set the timeout for Miri to 60 minutes (it's 6 hours by default). It runs in around 10 minutes when successful - Fix cache key as it was set to the same as another task that doesn't build with the same parameters
1 parent c309acd commit 947d3f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373

7474
miri:
7575
runs-on: ubuntu-latest
76+
timeout-minutes: 60
7677
steps:
7778
- uses: actions/checkout@v3
7879
- uses: actions/cache@v3
@@ -83,7 +84,7 @@ jobs:
8384
~/.cargo/registry/cache/
8485
~/.cargo/git/db/
8586
target/
86-
key: ${{ runner.os }}-cargo-ci-${{ hashFiles('**/Cargo.toml') }}
87+
key: ${{ runner.os }}-cargo-miri-${{ hashFiles('**/Cargo.toml') }}
8788
- uses: actions-rs/toolchain@v1
8889
with:
8990
toolchain: nightly

0 commit comments

Comments
 (0)