Skip to content

Commit

Permalink
Store project build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lptr committed Jan 2, 2024
1 parent 314fff8 commit 2075c97
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,16 @@ jobs:
run: |
pip install --upgrade platformio
- name: Build application (${{matrix.environment}})
- name: Cache project build cache for ${{ matrix.environment }}
uses: actions/cache@v3
with:
path: |
.pio/build-cache
key: ${{ runner.os }}-${{ matrix.environment }}-build-cache

- name: Build application (${{ matrix.environment }})
if: matrix.environment != 'native'
run: pio run --environment ${{matrix.environment}}
run: pio run --environment ${{ matrix.environment }}

- name: Rename firmware artifact
if: matrix.environment != 'native'
Expand Down

0 comments on commit 2075c97

Please sign in to comment.