Skip to content

Commit

Permalink
Workflows: fix cache dir in build GH workflow
Browse files Browse the repository at this point in the history
The PLT cache directory was not created when cache miss, failing the dialyzer task.
Create it.

Signed-off-by: Arnaldo Cesco <[email protected]>
  • Loading branch information
Annopaolo committed Nov 22, 2023
1 parent 2d24c4f commit 2f19fd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
key: ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-_build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-_build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- uses: actions/cache@v1
- id: plt_cache
uses: actions/cache@v1
with:
path: dialyzer_cache
key: ${{ runner.os }}-${{ env.elixir_version }}-${{ env.otp_version }}-dialyzer_cache-${{ github.sha }}
Expand All @@ -45,6 +46,9 @@ jobs:
elixir-version: ${{ env.elixir_version }}
- name: Install Dependencies
run: mix deps.get
- name: Create PLTs dir
if: ${{steps.plt_cache.outputs.cache-hit != 'true'}}
run: mkdir -p dialyzer_cache && mix dialyzer --plt
- name: Run dialyzer
# FIXME: This should be set to fail when dialyzer issues are fixed
run: mix dialyzer || exit 0
Expand Down

0 comments on commit 2f19fd8

Please sign in to comment.