platformio setup #1
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: CI Pipeline | |
| on: | |
| push: | |
| jobs: | |
| run-pipeline: | |
| name: Run CI Pipeline | |
| runs-on: ubuntu-22.04 | |
| continue-on-error: true | |
| steps: | |
| - name: Checkout this repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update \ | |
| && sudo apt install --no-install-recommends -y xz-utils cmake ninja-build lcov gcc g++ make libc6-dev | |
| wget https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz -O /tmp/arm-gcc.tar.xz | |
| tar -xf /tmp/arm-gcc.tar.xz -C /opt | |
| echo "/opt/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH | |
| - name: Build firmware binary debug | |
| run: ./scripts/run.sh build debug | |
| - name: Build firmware binary release | |
| run: ./scripts/run.sh build release | |
| - name: Build and run unit tests | |
| run: | | |
| ./scripts/run.sh cleanall | |
| ./scripts/run.sh test | |
| - name: Run formatting check | |
| uses: waterloo-rocketry/actions/clang-format-check@main | |
| with: | |
| clang-format-config-path: 'src/third_party/rocketlib/.clang-format' | |
| c-source-files: 'src/application/*/*.c src/application/*/*.h src/drivers/*/*.c src/drivers/*/*.h src/common/*/*.h src/common/*/*c' |