From 40a980f5d844f58c623183df46992a7f863f2db4 Mon Sep 17 00:00:00 2001 From: Ocraftyone Date: Sat, 6 Jan 2024 00:46:53 -0500 Subject: [PATCH] CICD: Fail on no cache hit (#3429) --- .github/workflows/build_orca.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_orca.yml b/.github/workflows/build_orca.yml index a2e1a54614..1e8962d80e 100644 --- a/.github/workflows/build_orca.yml +++ b/.github/workflows/build_orca.yml @@ -26,6 +26,13 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: load cached deps + uses: actions/cache@v3 + with: + path: ${{ inputs.cache-path }} + key: ${{ inputs.cache-key }} + fail-on-cache-miss: true + - name: Get the version and date on Ubuntu and macOS if: inputs.os != 'windows-latest' run: | @@ -65,12 +72,6 @@ jobs: echo "date=$date" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8 echo "date: ${{ env.date }} version: ${{ env.ver }}" shell: pwsh - - - name: load cached deps - uses: actions/cache@v3 - with: - path: ${{ inputs.cache-path }} - key: ${{ inputs.cache-key }} # Mac - name: Install tools mac