Skip to content

Commit

Permalink
Be more strict in the cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Jul 28, 2023
1 parent 0614910 commit 58711a9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@ jobs:
with:
path: _build
key: "_build-cache-for\
-os-${{runner.os}}\
-otp-${{steps.setup-beam.outputs.otp-version}}\
-rebar3-${{steps.setup-beam.outputs.rebar3-version}}\
-hash-${{hashFiles('rebar.lock')}}"
-os-${{ matrix.os }}\
-otp-${{ steps.setup-beam.outputs.otp-version }}\
-rebar3-${{ steps.setup-beam.outputs.rebar3-version }}\
-hash-${{ hashFiles('rebar.lock') }}"

- name: Restore rebar3's cache
uses: actions/cache@v3
with:
path: ~/.cache/rebar3
key: "rebar3-cache-for\
-os-${{runner.os}}\
-otp-${{steps.setup-beam.outputs.otp-version}}\
-rebar3-${{steps.setup-beam.outputs.rebar3-version}}\
-hash-${{hashFiles('rebar.lock')}}"
-os-${{ matrix.os }}\
-otp-${{ steps.setup-beam.outputs.otp-version }}\
-rebar3-${{ steps.setup-beam.outputs.rebar3-version }}\
-hash-${{ hashFiles('rebar.lock') }}"

- name: Compile
run: rebar3 compile
Expand Down

0 comments on commit 58711a9

Please sign in to comment.