From ad48dccd06644b24ed0223e4f7b4b0a55a39ea86 Mon Sep 17 00:00:00 2001 From: dernasherbrezon Date: Sun, 17 Dec 2023 20:41:50 +0000 Subject: [PATCH] build all examples --- .github/workflows/main.yml | 67 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 807dc5f..8d3eb76 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -57,10 +57,77 @@ 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 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