-
-
Notifications
You must be signed in to change notification settings - Fork 7
92 lines (74 loc) · 6.59 KB
/
examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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