From 4050d6ccba5e810dc06953620573ebbd99343c20 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 15 Jul 2022 16:56:54 -0700 Subject: [PATCH] Check cache key against expected --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10b6d27..ce5b099 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,14 +15,20 @@ jobs: matrix: name: [Linux] os: [ubuntu] - rust: [nightly, beta, stable, 1.0.0] + rust: [nightly, beta, stable, 1.62.0, 1.0.0] include: - name: macOS os: macos rust: nightly + - name: macOS + os: macos + rust: 1.62.0 - name: Windows os: windows rust: nightly + - name: Windows + os: windows + rust: 1.62.0 steps: - uses: actions/checkout@v3 - uses: ./ @@ -30,6 +36,10 @@ jobs: id: toolchain with: toolchain: ${{matrix.rust}} - - name: Check ${{'${{steps.toolchain.outputs.cachekey}}'}} + - name: echo ${{'${{steps.toolchain.outputs.cachekey}}'}} run: echo '${{steps.toolchain.outputs.cachekey}}' + - name: check ${{'${{steps.toolchain.outputs.cachekey}}'}} + if: matrix.rust == '1.62.0' + run: cmp -s <(echo ${{steps.toolchain.outputs.cachekey}}) <(echo 20220627a831) + shell: bash - run: rustc --version