Skip to content

Commit

Permalink
Fix cache
Browse files Browse the repository at this point in the history
1. we're not using rebar.lock so it should be part of the key
2. we're always going "bleeding edge", so we shouldn't cache deps
  • Loading branch information
paulo-ferraz-oliveira committed Jun 28, 2024
1 parent 33956c8 commit cc7379e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,14 @@ jobs:
version-type: strict
version-file: .tool-versions

- name: Restore _build
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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')}}"

- name: Restore rebar3's cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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')}}"
-rebar3-${{steps.setup-beam.outputs.rebar3-version}}"

- name: Continuous Integration
run: |
Expand Down

0 comments on commit cc7379e

Please sign in to comment.