From cc766091615807f20811cb7a8120fc58d8a94466 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Fri, 14 Jun 2024 11:34:33 -0400 Subject: [PATCH] Skip PLT caching and creation if not running dialyzer --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef8de5a2..74c2d8a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -72,6 +72,7 @@ jobs: - name: Restore cached PLTs uses: actions/cache@v4 id: plt_cache + if: ${{ matrix.dialyzer }} with: key: | ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-plt @@ -82,7 +83,7 @@ jobs: # Create PLTs if no cached PLTs were found - name: Create PLTs - if: steps.plt_cache.outputs.cache-hit != 'true' + if: ${{ matrix.dialyzer }} && steps.plt_cache.outputs.cache-hit != 'true' run: MIX_ENV=test mix dialyzer --plt - name: Run dialyzer