Skip to content

Latest commit

 

History

History
59 lines (55 loc) · 1.96 KB

Automation.md

File metadata and controls

59 lines (55 loc) · 1.96 KB

🤖 Automation

Table of contents


⚔️ Cross Compile Automation

💡 Issue

  1. Installing Cross-Compile environment to non-ubuntu system is not easy.
  2. Because of this, there was a complicated process to launch our dashboard.
    • make changes from personal workstation, push to the git repository
    • receive the commit from main workstation
    • make a binary(executable) file by Cross-Compilter of QT-Creator in main workstation
    • push to the git
    • receive the commit in raspberry pi
    • run the executable file

🙌 How to solve (idea)

  • Make a shell script that cross-compile and generate the binary file
  • Launch the script by ssh in Git Action, so make every commit will compile it and generate binary file.

Note

cross-compile must be handled only in terminal, not by qt-creator gui app.

🏃 Progress

  1. QT Compile by Terminal
    qmake $PROJECT_NAME.pro  # generate Makefile automatically
    make                     # launch Makefile
  2. make it as a shell file
    # !/bin/bash
    ./clean.sh
    qmake dashboard.pro
    make
    ./dashboard
    rm -rf qrc*
    rm -rf *.o
    rm -rf dashboard
    rm -rf Makefile
    rm -rf qmake.stash
    rm -rf *clangd
    

    [!WARNING] Actually, this is not a Cross-Compile. You must run this code at the raspy, and this will be unefficient if the project is heavy.

👓 TODO

⚙️ System Automation