|
@@ -1,9 +1,9 @@
|
|
|
-name: esp32c3-idf5
|
|
|
|
|
|
|
+name: esp32-idf5
|
|
|
|
|
|
|
|
on:
|
|
on:
|
|
|
push:
|
|
push:
|
|
|
paths:
|
|
paths:
|
|
|
- - '.github/workflows/esp32c3-idf5.yml'
|
|
|
|
|
|
|
+ - '.github/workflows/esp32-idf5.yml'
|
|
|
- 'lua/**'
|
|
- 'lua/**'
|
|
|
- 'luat/**'
|
|
- 'luat/**'
|
|
|
- 'components/**'
|
|
- 'components/**'
|
|
@@ -15,9 +15,15 @@ on:
|
|
|
jobs:
|
|
jobs:
|
|
|
build:
|
|
build:
|
|
|
runs-on: ubuntu-20.04
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
+ strategy:
|
|
|
|
|
+ matrix:
|
|
|
|
|
+ ESP_CHIP: [esp32,esp32c2,esp32c3,esp32s3]
|
|
|
|
|
+ fail-fast: false
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/checkout@v1
|
|
|
- name: prepare software
|
|
- name: prepare software
|
|
|
|
|
+ env:
|
|
|
|
|
+ ESP_CHIP: ${{ matrix.ESP_CHIP }}
|
|
|
run: |
|
|
run: |
|
|
|
sudo apt-get update
|
|
sudo apt-get update
|
|
|
sudo apt-get install git gcc-multilib libc6 libgcc1 libstdc++5 libstdc++6 libsdl-dev p7zip-full python3 python3-pip libncurses5-dev -y
|
|
sudo apt-get install git gcc-multilib libc6 libgcc1 libstdc++5 libstdc++6 libsdl-dev p7zip-full python3 python3-pip libncurses5-dev -y
|
|
@@ -26,26 +32,28 @@ jobs:
|
|
|
git clone --recursive https://github.com/espressif/esp-idf.git
|
|
git clone --recursive https://github.com/espressif/esp-idf.git
|
|
|
cd ~/esp/esp-idf
|
|
cd ~/esp/esp-idf
|
|
|
git submodule update --init --recursive
|
|
git submodule update --init --recursive
|
|
|
- ./install.sh esp32c3
|
|
|
|
|
|
|
+ ./install.sh $ESP_CHIP
|
|
|
- name: clone LuatOS-ESP32
|
|
- name: clone LuatOS-ESP32
|
|
|
run: |
|
|
run: |
|
|
|
sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry"
|
|
sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry"
|
|
|
cd ..
|
|
cd ..
|
|
|
retry 'git clone --branch=master https://gitee.com/openLuat/luatos-soc-idf5'
|
|
retry 'git clone --branch=master https://gitee.com/openLuat/luatos-soc-idf5'
|
|
|
- name: build
|
|
- name: build
|
|
|
|
|
+ env:
|
|
|
|
|
+ ESP_CHIP: ${{ matrix.ESP_CHIP }}
|
|
|
run: |
|
|
run: |
|
|
|
mkdir luatosfw
|
|
mkdir luatosfw
|
|
|
cd ../luatos-soc-idf5/luatos
|
|
cd ../luatos-soc-idf5/luatos
|
|
|
sed -i 's/D:\/\/github\/LuatOS\//\/home\/runner\/work\/LuatOS\/LuatOS/g' CMakeLists.txt
|
|
sed -i 's/D:\/\/github\/LuatOS\//\/home\/runner\/work\/LuatOS\/LuatOS/g' CMakeLists.txt
|
|
|
. ~/esp/esp-idf/export.sh
|
|
. ~/esp/esp-idf/export.sh
|
|
|
- idf.py set-target esp32c3
|
|
|
|
|
|
|
+ idf.py set-target $ESP_CHIP
|
|
|
idf.py build
|
|
idf.py build
|
|
|
mv *.soc ../../LuatOS/luatosfw
|
|
mv *.soc ../../LuatOS/luatosfw
|
|
|
- name: Upload artifact
|
|
- name: Upload artifact
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
|
|
|
+ uses: actions/upload-artifact@v2
|
|
|
with:
|
|
with:
|
|
|
- name: esp32c3
|
|
|
|
|
- path: luatosfw
|
|
|
|
|
|
|
+ name: ${{ matrix.dotnetos }}-soc
|
|
|
|
|
+ path: luatosfw/
|
|
|
- name: report if failure
|
|
- name: report if failure
|
|
|
if: always()
|
|
if: always()
|
|
|
env:
|
|
env:
|
|
@@ -58,7 +66,8 @@ jobs:
|
|
|
DD_NOTIFY_LIST: ${{ secrets.DD_NOTIFY_LIST }}
|
|
DD_NOTIFY_LIST: ${{ secrets.DD_NOTIFY_LIST }}
|
|
|
DD_API_TOKEN: ${{ secrets.DD_API_TOKEN }}
|
|
DD_API_TOKEN: ${{ secrets.DD_API_TOKEN }}
|
|
|
DD_API_SEND: ${{ secrets.DD_API_SEND }}
|
|
DD_API_SEND: ${{ secrets.DD_API_SEND }}
|
|
|
|
|
+ ESP_CHIP: ${{ matrix.ESP_CHIP }}
|
|
|
run: |
|
|
run: |
|
|
|
sudo pip3 install paho_mqtt gitpython requests
|
|
sudo pip3 install paho_mqtt gitpython requests
|
|
|
cd tools
|
|
cd tools
|
|
|
- if [ "$STATUS" = "failure" ];then python3 ciNotify.py $MQTTADDR $MQTTPORT $MQTTTOPIC "https://github.com/openLuat/LuatOS/actions/runs/$GITHUB_RUN_ID" "LuatOS-ESP32-IDF5" "$DD_APPKEY" "$DD_APPSECRET" "$DD_NOTIFY_LIST" "$DD_API_TOKEN" "$DD_API_SEND"; fi
|
|
|
|
|
|
|
+ if [ "$STATUS" = "failure" ];then python3 ciNotify.py $MQTTADDR $MQTTPORT $MQTTTOPIC "https://github.com/openLuat/LuatOS/actions/runs/$GITHUB_RUN_ID" "IDF5-$ESP_CHIP" "$DD_APPKEY" "$DD_APPSECRET" "$DD_NOTIFY_LIST" "$DD_API_TOKEN" "$DD_API_SEND"; fi
|