From 0feca4a0c2ced0b515ecfaef8426c285cd6ba144 Mon Sep 17 00:00:00 2001 From: dernasherbrezon Date: Sun, 17 Dec 2023 18:02:50 +0000 Subject: [PATCH] trying ccache in docker --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4ffcc35..93ef737 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,12 +51,12 @@ jobs: docker run -t -e IDF_TARGET="${IDF_TARGET}" -e CCACHE_DIR=/ccache -v ${CCACHE_DIR}:/ccache -v "${GITHUB_WORKSPACE}:/app/${{ github.repository }}" \ -w "/app/${{ github.repository }}/examples/receive_fsk" espressif/idf:v5.1.2 \ /bin/bash -c 'git config --global --add safe.directory "*" && idf.py build' - docker run -t -e IDF_TARGET="${IDF_TARGET}" -e CCACHE_DIR=/ccache -v ${CCACHE_DIR}:/ccache -v "${GITHUB_WORKSPACE}:/app/${{ github.repository }}" \ + docker run -t -e IDF_TARGET="${IDF_TARGET}" -e IDF_CCACHE_ENABLE="1" -e CCACHE_DIR=/ccache -v ${CCACHE_DIR}:/ccache -v "${GITHUB_WORKSPACE}:/app/${{ github.repository }}" \ -w "/app/${{ github.repository }}/examples/receive_fsk_beacon" espressif/idf:v5.1.2 \ - /bin/bash -c 'git config --global --add safe.directory "*" && idf.py build' - docker run -t -e IDF_TARGET="${IDF_TARGET}" -e CCACHE_DIR=/ccache -v ${CCACHE_DIR}:/ccache -v "${GITHUB_WORKSPACE}:/app/${{ github.repository }}" \ + /bin/bash -c 'git config --global --add safe.directory "*" && idf.py --ccache build' + docker run -t -e IDF_TARGET="${IDF_TARGET}" -e IDF_CCACHE_ENABLE="1" -e CCACHE_DIR=/ccache -v ${CCACHE_DIR}:/ccache -v "${GITHUB_WORKSPACE}:/app/${{ github.repository }}" \ -w "/app/${{ github.repository }}/examples/receive_fsk_filtered" espressif/idf:v5.1.2 \ - /bin/bash -c 'git config --global --add safe.directory "*" && idf.py build' + /bin/bash -c 'git config --global --add safe.directory "*" && idf.py --ccache build' shell: bash - name: Cache ccache uses: actions/cache@v3