From 947d3f9627d03c061966ede2b6f5ee5c78c961b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sat, 14 May 2022 02:01:38 +0000 Subject: [PATCH] add timeout to miri job in CI (#4743) # Objective - When Miri is failing, it can be very slow to do so Screenshot 2022-05-14 at 03 05 40 ## 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 --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d4c465fef..2f7da5fa76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,7 @@ jobs: miri: runs-on: ubuntu-latest + timeout-minutes: 60 steps: - uses: actions/checkout@v3 - uses: actions/cache@v3 @@ -83,7 +84,7 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-cargo-ci-${{ hashFiles('**/Cargo.toml') }} + key: ${{ runner.os }}-cargo-miri-${{ hashFiles('**/Cargo.toml') }} - uses: actions-rs/toolchain@v1 with: toolchain: nightly