Browse Source

refactor(workflows): add `3-` prefix to cache keys

A hack to invalidate GitHub actions/cache in CI builds/tests.

Activates benefits of 90123caa4c.

Should be reverted after 2 weeks.

PR: #442
xmkb
innovaker 4 years ago committed by Pete Johanson
parent
commit
fe010c7b6d
  1. 8
      .github/workflows/build.yml
  2. 8
      .github/workflows/test.yml

8
.github/workflows/build.yml

@ -55,11 +55,11 @@ jobs: @@ -55,11 +55,11 @@ jobs:
tools/
zephyr/
bootloader/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('app/west.yml') }}
key: 3-${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('app/west.yml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
3-${{ runner.os }}-build-${{ env.cache-name }}-
3-${{ runner.os }}-build-
3-${{ runner.os }}-
timeout-minutes: 2
continue-on-error: true
- name: West init

8
.github/workflows/test.yml

@ -30,11 +30,11 @@ jobs: @@ -30,11 +30,11 @@ jobs:
tools/
zephyr/
bootloader/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('app/west.yml') }}
key: 3-${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('app/west.yml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
3-${{ runner.os }}-build-${{ env.cache-name }}-
3-${{ runner.os }}-build-
3-${{ runner.os }}-
timeout-minutes: 2
continue-on-error: true
- name: West init

Loading…
Cancel
Save