[ci] Set cache_nonce for all jobs, not just those in the matrix

This commit is contained in:
Mark Spanbroek 2022-11-09 11:27:56 +01:00
parent b890b9d387
commit cf6d5c1640
No known key found for this signature in database
GPG Key ID: FBE3E9548D427C00
2 changed files with 4 additions and 8 deletions

View File

@ -15,9 +15,6 @@ inputs:
shell:
description: "Shell to run commands in"
default: "bash --noprofile --norc -e -o pipefail"
cache_nonce:
description: "Change to a new value to ignore previously cached versions"
default: 0
runs:
using: "composite"
steps:
@ -156,8 +153,8 @@ runs:
uses: actions/cache@v3
with:
path: NimBinaries
key: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_branch }}-cache-${{ inputs.cache_nonce }}-${{ github.run_id }}
restore-keys: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_branch }}-cache-${{ inputs.cache_nonce }}
key: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_branch }}-cache-${{ env.cache_nonce }}-${{ github.run_id }}
restore-keys: ${{ inputs.os }}-${{ inputs.cpu }}-nim-${{ inputs.nim_branch }}-cache-${{ env.cache_nonce }}
- name: Set NIM_COMMIT
shell: ${{ inputs.shell }} {0}

View File

@ -5,13 +5,13 @@ on:
- main
pull_request:
workflow_dispatch:
env:
cache_nonce: 0 # Allows for easily busting actions/cache caches
jobs:
build:
strategy:
fail-fast: false
matrix:
cache_nonce: [ 0 ] # Allows for easily busting actions/cache caches
os: [linux, macos, windows]
include:
- os: linux
@ -42,7 +42,6 @@ jobs:
with:
os: ${{ matrix.os }}
shell: ${{ matrix.shell }}
cache_nonce: ${{ matrix.cache_nonce }}
- name: Start Ethereum node with Codex contracts
working-directory: vendor/dagger-contracts