Skip to content

Commit

Permalink
ci: properly cache plts (2nd attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Aug 21, 2024
1 parent 617227c commit b127160
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
_build
deps
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }}
- uses: actions/cache@v4
with:
# Don't cache PLTs based on mix.lock hash, as Dialyzer can incrementally update old ones
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-plt
path: plts
if: ${{ matrix.lint }}
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.erlang }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ tower-*.tar

# Temporary files, for example, from tests.
/tmp/

/plts
3 changes: 3 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ defmodule Tower.MixProject do
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
dialyzer: [
plt_local_path: "plts"
],

# Docs
name: "Tower",
Expand Down

0 comments on commit b127160

Please sign in to comment.