From 2075c9717e7fda203930aaae27929a6f40b94356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3r=C3=A1nt=20Pint=C3=A9r?= Date: Tue, 2 Jan 2024 12:10:19 +0100 Subject: [PATCH] Store project build cache --- .github/workflows/build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bea9d84c..a7d99cce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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'