-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract build for examples into separate config
the build takes 13minutes even if ccache is used
- Loading branch information
1 parent
ad48dcc
commit 3c17c44
Showing
2 changed files
with
92 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: examples | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
- name: Cache ccache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/ccache | ||
key: ${{ runner.os }}-ccache | ||
restore-keys: ${{ runner.os }}-ccache | ||
- name: Build examples | ||
run: | | ||
export IDF_TARGET=$(echo "esp32" | tr '[:upper:]' '[:lower:]' | tr -d '_-') | ||
export CCACHE_DIR="${HOME}/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 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 --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 --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_fixed" espressif/idf:v5.1.2 \ | ||
/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_lora" espressif/idf:v5.1.2 \ | ||
/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_lora_deepsleep" espressif/idf:v5.1.2 \ | ||
/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_lora_implicit_header" espressif/idf:v5.1.2 \ | ||
/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_ook" espressif/idf:v5.1.2 \ | ||
/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/temperature" espressif/idf:v5.1.2 \ | ||
/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/transmit_fsk" espressif/idf:v5.1.2 \ | ||
/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/transmit_fsk_beacon" espressif/idf:v5.1.2 \ | ||
/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/transmit_fsk_fixed" espressif/idf:v5.1.2 \ | ||
/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/transmit_lora" espressif/idf:v5.1.2 \ | ||
/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/transmit_lora_implicit_header" espressif/idf:v5.1.2 \ | ||
/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/transmit_ook" espressif/idf:v5.1.2 \ | ||
/bin/bash -c 'git config --global --add safe.directory "*" && idf.py --ccache build' | ||
BASEDIR=$(pwd) | ||
mkdir -p ${BASEDIR}/examples/receive_fsk_raspberrypi/build | ||
cd ${BASEDIR}/examples/receive_fsk_raspberrypi/build | ||
cmake .. | ||
make | ||
mkdir -p ${BASEDIR}/examples/receive_lora_raspberrypi/build | ||
cd ${BASEDIR}/examples/receive_lora_raspberrypi/build | ||
cmake .. | ||
make | ||
mkdir -p ${BASEDIR}/examples/transmit_lora_raspberrypi/build | ||
cd ${BASEDIR}/examples/transmit_lora_raspberrypi/build | ||
cmake .. | ||
make | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters