rtt-w60x.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: rtt-w60x
  2. on: [push,pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-18.04
  6. steps:
  7. - uses: actions/checkout@v1
  8. - name: prepare software
  9. run: |
  10. sudo apt-get update
  11. sudo apt-get install git gcc-multilib libc6 libgcc1 libstdc++5 libstdc++6 libsdl-dev scons -y
  12. sudo apt-get install libncurses5-dev -y
  13. sudo pip install requests
  14. wget https://github.com/openLuat/LuatOS/releases/download/v0.0.1/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
  15. sudo tar xjf gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 -C /opt
  16. /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc --version
  17. - name: update submodule
  18. run: |
  19. git submodule init
  20. git submodule update
  21. - name: prepare packages
  22. run: |
  23. cd bsp/w60x
  24. export RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-6-2017-q2-update/bin
  25. echo | scons --menuconfig
  26. source ~/.env/env.sh
  27. pkgs --update
  28. chmod 755 -R packages/wm_libraries-latest/Tools/
  29. - name: make
  30. run: |
  31. cd bsp/w60x
  32. scons -j2
  33. - name: Upload artifact
  34. uses: actions/upload-artifact@v1
  35. with:
  36. name: w60x
  37. path: bsp/w60x/Bin/