Skip to content

Commit ca297a9

Browse files
committed
Updating the uncrustify bot to use the new formatting action. Idea is to just apply the patch the formatting action created.
1 parent 813f2f6 commit ca297a9

File tree

5 files changed

+41
-749
lines changed

5 files changed

+41
-749
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ jobs:
334334
runs-on: cbmc_ubuntu-latest_16-core
335335
steps:
336336
- name: Set up CBMC runner
337-
uses: FreeRTOS/CI-CD-Github-Actions/set_up_cbmc_runner@main
337+
uses: FreeRTOS/CI-CD-Github-Actions/set_up_cbmc_runner@v2
338338
with:
339339
cbmc_version: "5.61.0"
340340

@@ -352,6 +352,6 @@ jobs:
352352
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }}"
353353
354354
- name: Run CBMC
355-
uses: FreeRTOS/CI-CD-Github-Actions/run_cbmc@main
355+
uses: FreeRTOS/CI-CD-Github-Actions/run_cbmc@v2
356356
with:
357357
proofs_dir: test/cbmc/proofs

.github/workflows/formatting.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Format Pull Request Files
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
env:
8+
bashPass: \033[32;1mPASSED -
9+
bashInfo: \033[33;1mINFO -
10+
bashFail: \033[31;1mFAILED -
11+
bashEnd: \033[0m
12+
13+
jobs:
14+
Formatting:
15+
name: Run Formatting Check
16+
if: ${{ github.event.issue.pull_request }} &&
17+
( ( github.event.comment.body == '/bot run uncrustify' ) ||
18+
( github.event.comment.body == '/bot run formatting' ) )
19+
runs-on: ubuntu-20.04
20+
steps:
21+
- name: Apply Formatting Fix
22+
uses: FreeRTOS/CI-CD-Github-Actions/formatting-bot@v2
23+
id: check-formatting

.github/workflows/uncrustify.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Ignore MacOS file system related.
2+
**/*.DS_Store*
3+
4+
# Ignore build results
5+
[Dd]ebug/
6+
[Dd]ebugPublic/
7+
[Dd]ebug_with_Libslirp/
8+
[Rr]elease/
9+
[Rr]eleases/
10+
[Bb]in/
11+
[Oo]bj/
12+
[Ll]og/
13+
[Ll]ogs/
14+
[Bb]uild/
15+
__pycache__/
16+
117
**/*.d
218
**/*.o
319
**/*.su

0 commit comments

Comments
 (0)