Skip to content

Commit

Permalink
cache dependencies only
Browse files Browse the repository at this point in the history
  • Loading branch information
XiXiaPdx committed Dec 29, 2023
1 parent b1f6f12 commit a146587
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,23 @@ jobs:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}

# - name: Restore deps cache
# uses: actions/cache@v3
# with:
# path: examples/deps
# key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-${{ github.sha }}
# restore-keys: |
# deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
# deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}

- name: Restore _build cache
- name: Restore deps cache
uses: actions/cache@v3
with:
path: examples/_build
key: build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-${{ github.sha }}
path: examples/deps
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-${{ github.sha }}
restore-keys: |
build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
# - name: Restore _build cache
# uses: actions/cache@v3
# with:
# path: examples/_build
# key: build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-${{ github.sha }}
# restore-keys: |
# build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
# build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}

- name: Install deps
run: mix deps.get
Expand Down

0 comments on commit a146587

Please sign in to comment.