feat: implement interactive CLI for libectool testing #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/build.yml | |
| name: Build ectool | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository (with submodules) | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y cmake clang ninja-build git libftdi1-dev libusb-1.0-0-dev pkg-config | |
| - name: Print environment info (for debugging) | |
| run: | | |
| echo "CC=$CC" | |
| echo "CXX=$CXX" | |
| clang --version | |
| cmake --version | |
| ninja --version | |
| pwd && ls -al | |
| - name: Configure CMake | |
| run: | | |
| mkdir _build | |
| cd _build | |
| CC=clang CXX=clang++ cmake -GNinja .. | |
| - name: Build | |
| run: | | |
| cd _build | |
| ninja | |
| - name: List build output (for debugging) | |
| run: | | |
| echo "::group::Build Output" | |
| find _build -type f | |
| echo "::endgroup::" | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ectool-linux | |
| path: | | |
| _build/src/core/ectool | |
| _build/src/core/libectool.so |