From ceb80c0761a340f360084f9919b08fd5899370ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Metrich?= <45318189+FredM67@users.noreply.github.com> Date: Sun, 2 Jun 2024 10:21:11 +0200 Subject: [PATCH] Update build.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric Metrich <45318189+FredM67@users.noreply.github.com> --- .github/workflows/build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0894c19..8eb2072 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,14 +22,23 @@ jobs: - uses: actions/checkout@v4 with: submodules: 'true' + - uses: actions/cache@v3 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio - name: Set up Python uses: actions/setup-python@v4 - name: Install dependencies run: | python -m pip install --upgrade pip - pip install platformio + - name: Install PlatformIO Core + run: | + pip install --upgrade platformio # It is important to first install the libraries before compiling, since otherwise compilation might fail to find the just-installed libraries - name: Install platformIO libraries run: pio lib install - name: Run PlatformIO - run: platformio run + run: | + pio run --project-dir Mk2_3phase_RFdatalog_temp