Skip to content

Commit c638dbf

Browse files
perf: add caching for pip and PlatformIO in CI workflow (#2)
* feat: add caching for pip and PlatformIO in CI workflow, extend timeout. * fix: reduce timeout for Wokwi CI action to improve efficiency
1 parent f6ab884 commit c638dbf

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/wokwi-test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,23 @@ jobs:
7070
steps:
7171
- uses: actions/checkout@v4
7272

73+
- name: Cache pip
74+
uses: actions/cache@v4
75+
with:
76+
path: ~/.cache/pip
77+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
78+
restore-keys: |
79+
${{ runner.os }}-pip-
80+
81+
- name: Cache PlatformIO
82+
uses: actions/cache@v4
83+
with:
84+
path: |
85+
~/.platformio
86+
key: ${{ runner.os }}-platformio-${{ hashFiles('**/platformio.ini') }}
87+
restore-keys: |
88+
${{ runner.os }}-platformio-
89+
7390
- name: Install PlatformIO
7491
run: |
7592
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)