Skip to content

Commit

Permalink
CI: do not cache _build dirs
Browse files Browse the repository at this point in the history
Caching _build makes test fail randomly. Do not cache the directory.

Signed-off-by: Arnaldo Cesco <[email protected]>
  • Loading branch information
Annopaolo committed Jun 20, 2023
1 parent c71170f commit ad18776
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/astarte-apps-build-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,14 @@ jobs:
key: ${{ runner.os }}-apps-mix-${{ env.otp_version }}-${{ env.elixir_version }}-${{ matrix.app }}-${{ hashFiles(format('{0}{1}{2}{3}', github.workspace, '/apps/', matrix.app, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-apps-mix-${{ env.otp_version }}-${{ env.elixir_version }}-${{ matrix.app }}-
- uses: actions/cache@v1
with:
path: apps/${{ matrix.app }}/_build
key: ${{ runner.os }}-apps-_build-${{ env.otp_version }}-${{ env.elixir_version }}-${{ matrix.app }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-apps-_build-${{ env.otp_version }}-${{ env.elixir_version }}-${{ matrix.app }}-
# Caching _build is causing tests to fail rather unexpectedly.
# TODO try to undestand why and restore the cache step.
# - uses: actions/cache@v1
# with:
# path: apps/${{ matrix.app }}/_build
# key: ${{ runner.os }}-apps-_build-${{ env.otp_version }}-${{ env.elixir_version }}-${{ matrix.app }}-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-apps-_build-${{ env.otp_version }}-${{ env.elixir_version }}-${{ matrix.app }}-
- uses: erlef/[email protected]
with:
otp-version: ${{ env.otp_version }}
Expand Down

0 comments on commit ad18776

Please sign in to comment.