Skip to content

Commit

Permalink
trying ccache in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Dec 17, 2023
1 parent c251007 commit f684fc5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,21 @@ jobs:
- name: Build examples
run: |
export IDF_TARGET=$(echo "esp32" | tr '[:upper:]' '[:lower:]' | tr -d '_-')
mkdir -p ~/ccache
docker run -t -e IDF_TARGET="${IDF_TARGET}" -e CCACHE_DIR=/ccache -v ~/ccache:/ccache -v "${GITHUB_WORKSPACE}:/app/${{ github.repository }}" \
export CCACHE_DIR="~/ccache"
mkdir -p ${CCACHE_DIR}
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:/ccache -v "${GITHUB_WORKSPACE}:/app/${{ github.repository }}" \
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_beacon" espressif/idf:v5.1.2 \
/bin/bash -c 'git config --global --add safe.directory "*" && idf.py build'
shell: bash
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_filtered" espressif/idf:v5.1.2 \
/bin/bash -c 'git config --global --add safe.directory "*" && idf.py build'
shell: bash
- name: Cache ccache
uses: actions/cache@v3
with:
path: ~/ccache
key: ${{ runner.os }}-ccache
restore-keys: ${{ runner.os }}-ccache

0 comments on commit f684fc5

Please sign in to comment.