Skip to content

Commit 61e6b89

Browse files
authored
Merge pull request #274 from iory/ga
[atoms3 and GA] Cache firmware build to speed up
2 parents 468e524 + 3fc0c46 commit 61e6b89

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/release_firmware.yml

+18
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,28 @@ jobs:
3434
with:
3535
fetch-depth: 0 # Fetch all tags if needed
3636

37+
- name: Cache PlatformIO dependencies
38+
uses: actions/cache@v4
39+
with:
40+
path: |
41+
~/.platformio
42+
~/.cache/pip
43+
key: ${{ runner.os }}-pio-${{ hashFiles('**/platformio.ini') }}
44+
restore-keys: |
45+
${{ runner.os }}-pio-
46+
47+
- name: Cache PlatformIO build
48+
uses: actions/cache@v4
49+
with:
50+
path: ~/.cache/pio
51+
key: ${{ runner.os }}-pio-build-${{ hashFiles('firmware/atom_s3_i2c_display/src/**/*') }}
52+
restore-keys: |
53+
${{ runner.os }}-pio-build-
3754
- name: Set up Python
3855
uses: actions/setup-python@v5
3956
with:
4057
python-version: '3.11'
58+
cache: 'pip'
4159

4260
- name: Install PlatformIO
4361
run: pip install --upgrade platformio

0 commit comments

Comments
 (0)