-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (35 loc) · 931 Bytes
/
format.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright (c) 2023 Ferrous Systems
# SPDX-License-Identifier: MIT OR Apache-2.0
name: workflow-code-format
run-name: Check code formatting
on: [push]
jobs:
job-format-nrf52-app:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Check Formatting on nRF52 App
run: |
cd nrf52-app
cargo fmt -- --check
job-format-qemu-cortex-r5-app:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Check Formatting on QEMU Cortex-R5 App
run: |
cd qemu-cortex-r5-app
cargo fmt -- --check
job-format-threadx-sys:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Check Formatting
run: |
cd threadx-sys
cargo fmt -- --check