|
1 | 1 | name: CI Pipeline |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
| 4 | + push: |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - run-pipeline: |
8 | | - name: Run CI Pipeline |
9 | | - runs-on: ubuntu-22.04 |
10 | | - continue-on-error: true |
11 | | - |
12 | | - steps: |
13 | | - - name: Checkout this repo |
14 | | - uses: actions/checkout@v4 |
15 | | - with: |
16 | | - submodules: true |
17 | | - |
18 | | - - name: Install dependencies |
19 | | - run: | |
20 | | - sudo apt update \ |
21 | | - && sudo apt install --no-install-recommends -y xz-utils cmake ninja-build lcov gcc g++ make libc6-dev |
22 | | - 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 |
23 | | - tar -xf /tmp/arm-gcc.tar.xz -C /opt |
24 | | - echo "/opt/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH |
25 | | - |
26 | | - - name: Build firmware binary debug |
27 | | - run: ./scripts/run.sh build debug |
28 | | - |
29 | | - - name: Build firmware binary release |
30 | | - run: ./scripts/run.sh build release |
31 | | - |
32 | | - - name: Build and run unit tests |
33 | | - run: | |
34 | | - ./scripts/run.sh cleanall |
35 | | - ./scripts/run.sh test |
36 | | -
|
37 | | - - name: Run formatting check |
38 | | - uses: waterloo-rocketry/actions/clang-format-check@main |
39 | | - with: |
40 | | - clang-format-config-path: 'src/third_party/rocketlib/.clang-format' |
41 | | - c-source-files: 'src/application/*/*.c src/application/*/*.h src/drivers/*/*.c src/drivers/*/*.h src/common/*/*.h src/common/*/*c' |
| 7 | + run-pipeline: |
| 8 | + name: Run CI Pipeline |
| 9 | + runs-on: ubuntu-22.04 |
| 10 | + continue-on-error: true |
| 11 | + |
| 12 | + steps: |
| 13 | + - name: Checkout this repo |
| 14 | + uses: actions/checkout@v4 |
| 15 | + with: |
| 16 | + submodules: true |
| 17 | + |
| 18 | + - name: Install dependencies |
| 19 | + run: |
| 20 | + |
| 21 | + - name: Build firmware binary debug |
| 22 | + run: |
| 23 | + |
| 24 | + - name: Build firmware binary release |
| 25 | + run: |
| 26 | + |
| 27 | + - name: Build and run unit tests |
| 28 | + run: |
| 29 | + |
| 30 | + - name: Run formatting check |
| 31 | + uses: waterloo-rocketry/actions/clang-format-check@main |
| 32 | + with: |
| 33 | + clang-format-config-path: "src/third_party/rocketlib/.clang-format" |
| 34 | + c-source-files: "" |
0 commit comments