| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- name: 8850
- on:
- # push:
- # paths:
- # - '.github/workflows/8850.yml'
- # - 'lua/**'
- # - 'luat/**'
- # - 'components/**'
- workflow_dispatch:
- repository_dispatch:
- types:
- - webhook-8850-action
- jobs:
- build:
- runs-on: ubuntu-20.04
- steps:
- - uses: actions/checkout@v1
- - name: prepare software
- run: |
- wget -q https://github.com/openLuat/LuatOS/releases/download/v0.0.1/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 -O gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
- tar jxvf gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
- - name: clone 8850
- env:
- REPO: ${{ secrets.REPO8850 }}
- run: |
- sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry"
- cd ..
- retry 'git clone --branch=luatos-soc $REPO 8850'
- - name: make
- run: |
- cd ..
- chmod 777 -R 8850/
- cd 8850
- sed -i 's/`pwd`\/prebuilts\/linux\/gcc-arm-none-eabi\/bin/\/home\/runner\/work\/LuatOS\/LuatOS\/gcc-arm-none-eabi-10.3-2021.10\/bin/g' build.sh
- cp CMakeLists样本.txt CMakeLists.txt
- sed -i 's/E:\/\/LuatOS/\/home\/runner\/work\/LuatOS\/LuatOS\//g' CMakeLists.txt
- chmod +x build.sh
- chmod +x prebuilts/linux/bin/*
- chmod +x tools/linux/*
- mkdir ../LuatOS/luatosfw
- mkdir out
- mkdir out/8850BM_LuatOS_debug
- bash build_8850BM.sh
- cp hex/8850BM_LuatOS_debug/*.soc ../LuatOS/luatosfw
- rm -rf hex/
- rm -rf out/
- mkdir out
- mkdir out/8850DG_LuatOS_debug
- bash build_8850DG.sh
- cp hex/8850DG_LuatOS_debug/*.soc ../LuatOS/luatosfw
- - name: Upload artifact
- uses: actions/upload-artifact@v1
- with:
- name: soc8850
- path: luatosfw
- - name: report if failure
- if: always()
- env:
- STATUS: ${{ job.status }}
- MQTTADDR: ${{ secrets.MQTTADDR }}
- MQTTPORT: ${{ secrets.MQTTPORT }}
- MQTTTOPIC: ${{ secrets.MQTTTOPIC }}
- DD_APPKEY: ${{ secrets.DD_APPKEY }}
- DD_APPSECRET: ${{ secrets.DD_APPSECRET }}
- DD_NOTIFY_LIST: ${{ secrets.DD_NOTIFY_LIST }}
- DD_API_TOKEN: ${{ secrets.DD_API_TOKEN }}
- DD_API_SEND: ${{ secrets.DD_API_SEND }}
- run: |
- sudo pip3 install paho_mqtt gitpython requests
- cd tools
- if [ "$STATUS" = "failure" ];then python3 ciNotify.py $MQTTADDR $MQTTPORT $MQTTTOPIC "https://github.com/openLuat/LuatOS/actions/runs/$GITHUB_RUN_ID" "8850" "$DD_APPKEY" "$DD_APPSECRET" "$DD_NOTIFY_LIST" "$DD_API_TOKEN" "$DD_API_SEND"; fi
|