Skip to content

Commit

Permalink
fix: ci use commit hash as cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
0xClandestine committed Feb 21, 2025
1 parent b8f75f6 commit f1ec995
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ jobs:
path: |
cache/
out/
key: ${{ runner.os }}-forge-${{ hashFiles('**/foundry.toml', '**/remappings.txt', 'src/**/*.sol', 'lib/**/*.sol') }}
restore-keys: |
${{ runner.os }}-forge-
key: forge-${{ github.sha }}

# Install the Foundry toolchain.
- name: Install Foundry
Expand Down Expand Up @@ -111,9 +109,7 @@ jobs:
path: |
cache/
out/
key: ${{ runner.os }}-forge-${{ hashFiles('**/foundry.toml', '**/remappings.txt', 'src/**/*.sol', 'lib/**/*.sol') }}
restore-keys: |
${{ runner.os }}-forge-
key: forge-${{ github.sha }}

# Install the Foundry toolchain.
- name: "Install Foundry"
Expand Down Expand Up @@ -155,9 +151,7 @@ jobs:
path: |
cache/
out/
key: ${{ runner.os }}-forge-${{ hashFiles('**/foundry.toml', '**/remappings.txt', 'src/**/*.sol', 'lib/**/*.sol') }}
restore-keys: |
${{ runner.os }}-forge-
key: forge-${{ github.sha }}

# Install the Foundry toolchain.
- name: "Install Foundry"
Expand Down Expand Up @@ -203,9 +197,7 @@ jobs:
~/.foundry
out/
cache/
key: ${{ runner.os }}-forge-${{ hashFiles('**/foundry.toml', '**/remappings.txt', 'src/**/*.sol', 'lib/**/*.sol', '**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-foundry-
key: forge-${{ github.sha }}

# Install the Foundry toolchain.
- name: "Install Foundry"
Expand Down

0 comments on commit f1ec995

Please sign in to comment.