Recover I2C peripheral on error instead of permanently locking up #2
Workflow file for this run
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: build | |
| on: | |
| workflow_dispatch: | |
| workflow_call: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Install ARM GCC toolchain | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gcc-arm-none-eabi | |
| - name: Verify toolchain installation | |
| run: | | |
| arm-none-eabi-gcc --version | |
| - name: Configure CMake | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=Release | |
| - name: Build firmware | |
| run: cmake --build build | |
| - name: Verify binary generation | |
| run: | | |
| ls -lh build/ | |
| file build/color-led.bin | |
| - name: Upload binary artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: color-led-binary | |
| path: build/color-led.bin |