Skip to content

Commit

Permalink
Don't share caches between OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jul 2, 2024
1 parent ab434e4 commit 928467a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci-esp32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,13 @@ jobs:
run: |
sudo chown $USER /opt
- name: Cache ESP-IDF
- name: Cache ESP-IDF and build tools
uses: actions/cache@v4
with:
path: /opt/esp-idf-${{ matrix.idf_version }}
key: idf-${{ matrix.idf_version }}
enableCrossOsArchive: true

- name: Cache build tools
uses: actions/cache@v4
with:
path: /opt/esp32
key: ${{ matrix.os }}-esp32-${{ matrix.idf_version }}
path: |
/opt/esp-idf-${{ matrix.idf_version }}
/opt/esp32
key: ${{ matrix.os }}-idf-${{ matrix.idf_version }}

- name: Install build tools for Ubuntu / MacOS
if: ${{ matrix.os != 'windows-latest' }}
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,14 @@ jobs:
run: |
sudo chown $USER /opt
- name: Cache ESP-IDF
- name: Cache ESP-IDF and build tools
if: ${{ matrix.arch == 'Esp32' }}
uses: actions/cache@v4
with:
path: /opt/esp-idf-${{ env.INSTALL_IDF_VER }}
key: idf-${{ env.INSTALL_IDF_VER }}
enableCrossOsArchive: true

- name: Cache IDF build tools
if: ${{ matrix.arch == 'Esp32' }}
uses: actions/cache@v4
with:
path: /opt/esp32
key: ${{ matrix.os }}-esp32-${{ env.INSTALL_IDF_VER }}
path: |
/opt/esp-idf-${{ env.INSTALL_IDF_VER }}
/opt/esp32
key: ${{ matrix.os }}-idf-${{ env.INSTALL_IDF_VER }}

- name: Install build tools for Ubuntu / MacOS
if: ${{ matrix.os != 'windows-latest' }}
Expand Down

0 comments on commit 928467a

Please sign in to comment.