feat: 增加对推理模型的调用 #3
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
| name: Firmware CI | |
| on: | |
| push: | |
| paths: | |
| - 'firmware/**' | |
| - '.github/workflows/firmware-ci.yml' | |
| - '!firmware/**/README.md' | |
| - '!firmware/README.md' | |
| pull_request: | |
| paths: | |
| - 'firmware/**' | |
| - '.github/workflows/firmware-ci.yml' | |
| - '!firmware/**/README.md' | |
| - '!firmware/README.md' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Firmware Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Cache PlatformIO | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/pip | |
| ~/.platformio/.cache | |
| key: ${{ runner.os }}-platformio-${{ hashFiles('firmware/platformio.ini', 'firmware/src/**', 'firmware/lib/**', 'firmware/include/**') }} | |
| restore-keys: | | |
| ${{ runner.os }}-platformio- | |
| - name: Install PlatformIO | |
| run: python -m pip install --upgrade platformio | |
| - name: Build firmware | |
| run: python -m platformio run -d firmware |