Skip to content

Commit 70dec48

Browse files
committed
fix(ci): update Dialyzer PLT cache key to include OTP/Elixir version
The PLT file is specific to the OTP and Elixir versions used. Updated the cache key to include version info to prevent stale PLT errors. Also removed deprecated --halt-exit-status flag and added explicit priv/plts directory creation.
1 parent 3a5cff1 commit 70dec48

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,15 @@ jobs:
121121

122122
- name: Restore Dialyzer PLT cache
123123
uses: actions/cache@v4
124+
id: plt-cache
124125
with:
125126
path: priv/plts
126-
key: ${{ runner.os }}-dialyzer-${{ hashFiles('**/mix.lock') }}
127-
restore-keys: ${{ runner.os }}-dialyzer-
127+
key: ${{ runner.os }}-plt-otp28-elixir1.18-${{ hashFiles('**/mix.lock') }}
128+
restore-keys: |
129+
${{ runner.os }}-plt-otp28-elixir1.18-
130+
131+
- name: Create PLTs directory
132+
run: mkdir -p priv/plts
128133

129134
- name: Run Dialyzer
130-
run: mix dialyzer --halt-exit-status
135+
run: mix dialyzer

0 commit comments

Comments
 (0)