|
90 | 90 | otp-version: ${{matrix.otp}} |
91 | 91 | elixir-version: ${{matrix.elixir}} |
92 | 92 |
|
93 | | - - name: Restore PLT cache |
94 | | - id: plt_cache |
95 | | - uses: actions/cache/restore@v4 |
96 | | - with: |
97 | | - key: | |
98 | | - plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }} |
99 | | - restore-keys: | |
100 | | - plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}- |
101 | | - path: | |
102 | | - priv/plts |
103 | | - if: ${{ matrix.lint }} |
104 | | - |
105 | | - - name: Create PLTs |
106 | | - if: ${{ steps.plt_cache.outputs.cache-hit != 'true' && matrix.lint }} |
107 | | - run: mix dialyzer --plt |
108 | | - |
109 | | - - name: Save PLT cache |
110 | | - id: plt_cache_save |
111 | | - uses: actions/cache/save@v4 |
112 | | - if: ${{ steps.plt_cache.outputs.cache-hit != 'true' && matrix.lint }} |
113 | | - with: |
114 | | - key: | |
115 | | - plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }} |
116 | | - path: | |
117 | | - priv/plts |
118 | | -
|
119 | 93 | - name: Cache dependencies/builds |
120 | 94 | uses: actions/cache@v4 |
121 | 95 | with: |
@@ -155,6 +129,32 @@ jobs: |
155 | 129 | run: mix format --check-formatted |
156 | 130 | if: ${{ matrix.lint }} |
157 | 131 |
|
| 132 | + - name: Restore PLT cache |
| 133 | + id: plt_cache |
| 134 | + uses: actions/cache/restore@v4 |
| 135 | + with: |
| 136 | + key: | |
| 137 | + plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }} |
| 138 | + restore-keys: | |
| 139 | + plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}- |
| 140 | + path: | |
| 141 | + priv/plts |
| 142 | + if: ${{ matrix.lint }} |
| 143 | + |
| 144 | + - name: Create PLTs |
| 145 | + if: ${{ steps.plt_cache.outputs.cache-hit != 'true' && matrix.lint }} |
| 146 | + run: mix dialyzer --plt |
| 147 | + |
| 148 | + - name: Save PLT cache |
| 149 | + id: plt_cache_save |
| 150 | + uses: actions/cache/save@v4 |
| 151 | + if: ${{ steps.plt_cache.outputs.cache-hit != 'true' && matrix.lint }} |
| 152 | + with: |
| 153 | + key: | |
| 154 | + plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }} |
| 155 | + path: | |
| 156 | + priv/plts |
| 157 | +
|
158 | 158 | - name: Dialyzer |
159 | 159 | run: mix dialyzer --format github --format dialyxir |
160 | 160 | if: ${{ matrix.lint }} |
|
0 commit comments