[ci] Set cache_nonce for all jobs, not just those in the matrix
This commit is contained in:
parent
b890b9d387
commit
cf6d5c1640
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue