Skip to content

Commit a0c9718

Browse files
committed
refactor(ci): split by type
Build will now compile for all nucleo. Signed-off-by: Frederic Pillon <[email protected]>
1 parent 7f6632b commit a0c9718

File tree

3 files changed

+62
-34
lines changed

3 files changed

+62
-34
lines changed

.github/workflows/CodeSpell.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Check misspelled words with codespell
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
jobs:
11+
codespell:
12+
name: Check for spelling errors
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@main
18+
19+
# See: https://github.com/codespell-project/actions-codespell/blob/master/README.md
20+
- name: Spell check
21+
uses: codespell-project/actions-codespell@master
22+
with:
23+
check_filenames: true
24+
check_hidden: true
25+
# In the event of a false positive, add the word in all lower case to this file:
26+
# ignore_words_file: ./CI/codespell/.codespellignore

.github/workflows/Continuous-Integration.yml

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,6 @@ on:
1515
# Allows you to run this workflow manually from the Actions tab
1616
workflow_dispatch:
1717
jobs:
18-
astyle_check:
19-
runs-on: ubuntu-latest
20-
name: AStyle check
21-
steps:
22-
# First of all, clone the repo using the checkout action.
23-
- name: Checkout
24-
uses: actions/checkout@main
25-
26-
- name: Astyle check
27-
id: Astyle
28-
uses: stm32duino/actions/astyle-check@main
29-
30-
# Use the output from the `Astyle` step
31-
- name: Astyle Errors
32-
if: failure()
33-
run: |
34-
cat ${{ steps.Astyle.outputs.astyle-result }}
35-
exit 1
36-
codespell:
37-
name: Check for spelling errors
38-
runs-on: ubuntu-latest
39-
steps:
40-
- name: Checkout
41-
uses: actions/checkout@main
42-
43-
# See: https://github.com/codespell-project/actions-codespell/blob/master/README.md
44-
- name: Spell check
45-
uses: codespell-project/actions-codespell@master
46-
with:
47-
check_filenames: true
48-
check_hidden: true
49-
# In the event of a false positive, add the word in all lower case to this file:
50-
# ignore_words_file: ./extras/codespell-ignore-words-list.txt
5118
lib_build:
5219
runs-on: ubuntu-latest
5320
name: Library compilation
@@ -60,7 +27,7 @@ jobs:
6027
id: Compile
6128
uses: stm32duino/actions/compile-examples@main
6229
with:
63-
board-pattern: ".*NUCLEO_([^F]|F[^0]|F0[^34]).*"
30+
board-pattern: ".*NUCLEO.*"
6431
custom-config: "./extras/rtc_cores_config.json"
6532

6633
# Use the output from the `Compile` step

.github/workflows/astyle.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Check code formatting with astyle
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- '*'
8+
- '**.md'
9+
- '**.txt'
10+
pull_request:
11+
paths-ignore:
12+
- '*'
13+
- '**.md'
14+
- '**.txt'
15+
# Allows you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
jobs:
18+
astyle_check:
19+
runs-on: ubuntu-latest
20+
name: Check for astyle errors
21+
steps:
22+
# First of all, clone the repo using the checkout action.
23+
- name: Checkout
24+
uses: actions/checkout@main
25+
26+
- name: Astyle check
27+
id: Astyle
28+
uses: stm32duino/actions/astyle-check@main
29+
30+
# Use the output from the `Astyle` step
31+
- name: Astyle Errors
32+
if: failure()
33+
run: |
34+
cat ${{ steps.Astyle.outputs.astyle-result }}
35+
exit 1

0 commit comments

Comments
 (0)