Skip to content

Commit 02bb5b4

Browse files
authored
Update ci.yml
1 parent 001c459 commit 02bb5b4

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.github/workflows/ci.yml

+34-34
Original file line numberDiff line numberDiff line change
@@ -126,42 +126,42 @@ jobs:
126126
- if: steps.sobelow.conclusion == 'failure'
127127
run: echo "### Failed on sobelow" >> $GITHUB_STEP_SUMMARY
128128

129-
# Don't cache PLTs based on mix.lock hash, as Dialyzer can incrementally update even old ones
130-
# Cache key based on Elixir & Erlang version (also useful when running in matrix)
131-
- name: Restore PLT cache
132-
uses: actions/cache/restore@v3
133-
id: plt_cache
134-
with:
135-
key: |
136-
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
137-
restore-keys: |
138-
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
139-
path: |
140-
priv/plts
129+
## Don't cache PLTs based on mix.lock hash, as Dialyzer can incrementally update even old ones
130+
## Cache key based on Elixir & Erlang version (also useful when running in matrix)
131+
#- name: Restore PLT cache
132+
# uses: actions/cache/restore@v3
133+
# id: plt_cache
134+
# with:
135+
# key: |
136+
# ${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
137+
# restore-keys: |
138+
# ${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
139+
# path: |
140+
# priv/plts
141141

142-
# Create PLTs if no cache was found
143-
- name: Create PLTs
144-
if: steps.plt_cache.outputs.cache-hit != 'true'
145-
run: mix dialyzer --plt
146-
147-
# By default, the GitHub Cache action will only save the cache if all steps in the job succeed,
148-
# so we separate the cache restore and save steps in case running dialyzer fails.
149-
- name: Save PLT cache
150-
uses: actions/cache/save@v3
151-
if: steps.plt_cache.outputs.cache-hit != 'true'
152-
id: plt_cache_save
153-
with:
154-
key: |
155-
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
156-
path: |
157-
priv/plts
158-
159-
- name: Run dialyzer
160-
id: dialyzer
161-
run: mix dialyzer --format github
142+
## Create PLTs if no cache was found
143+
#- name: Create PLTs
144+
# if: steps.plt_cache.outputs.cache-hit != 'true'
145+
# run: mix dialyzer --plt
146+
147+
## By default, the GitHub Cache action will only save the cache if all steps in the job succeed,
148+
## so we separate the cache restore and save steps in case running dialyzer fails.
149+
#- name: Save PLT cache
150+
# uses: actions/cache/save@v3
151+
# if: steps.plt_cache.outputs.cache-hit != 'true'
152+
# id: plt_cache_save
153+
# with:
154+
# key: |
155+
# ${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
156+
# path: |
157+
# priv/plts
158+
159+
#- name: Run dialyzer
160+
# id: dialyzer
161+
# run: mix dialyzer --format github
162162

163-
- if: steps.dialyzer.conclusion == 'failure'
164-
run: echo "### Failed on dialyzer" >> $GITHUB_STEP_SUMMARY
163+
#- if: steps.dialyzer.conclusion == 'failure'
164+
# run: echo "### Failed on dialyzer" >> $GITHUB_STEP_SUMMARY
165165

166166
# Step: Execute the tests.
167167
- name: Run tests

0 commit comments

Comments
 (0)