Skip to content

Commit d2e5f13

Browse files
authored
Merge pull request #21 from fpistm/gha_rtc
CI deployment using GitHub actions
2 parents 96464ec + a3c21e4 commit d2e5f13

File tree

4 files changed

+314
-251
lines changed

4 files changed

+314
-251
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: STM32RTC Continuous Integration
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- '*'
8+
- '**.md'
9+
- '**.txt'
10+
pull_request:
11+
paths-ignore:
12+
- '*'
13+
- '**.md'
14+
- '**.txt'
15+
jobs:
16+
astyle_check:
17+
runs-on: ubuntu-latest
18+
name: AStyle check
19+
steps:
20+
# First of all, clone the repo using the checkout action.
21+
- name: Checkout
22+
uses: actions/checkout@master
23+
24+
- name: Astyle check
25+
id: Astyle
26+
uses: stm32duino/actions/astyle-check@master
27+
28+
# Use the output from the `Astyle` step
29+
- name: Astyle Errors
30+
if: failure()
31+
run: |
32+
cat ${{ steps.Astyle.outputs.astyle-result }}
33+
exit 1
34+
spell-check:
35+
runs-on: ubuntu-latest
36+
name: Spell check
37+
steps:
38+
- uses: actions/checkout@master
39+
- uses: arduino/actions/libraries/spell-check@master
40+
# with:
41+
# ignore-words-list: "./extras/codespell-ignore-words-list.txt"
42+
lib_build:
43+
runs-on: ubuntu-latest
44+
name: Library compilation
45+
steps:
46+
# First of all, clone the repo using the checkout action.
47+
- name: Checkout
48+
uses: actions/checkout@master
49+
50+
- name: Compilation
51+
id: Compile
52+
uses: stm32duino/actions/compile-examples@master
53+
with:
54+
board-pattern: ".*NUCLEO.*"
55+
56+
# Use the output from the `Compile` step
57+
- name: Compilation Errors
58+
if: failure()
59+
run: |
60+
cat ${{ steps.Compile.outputs.compile-result }}
61+
exit 1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ _Time and date configuration (added for convenience)_
6060

6161
### Since STM32 Core version > 1.5.0
6262
_Reset time management_
63-
By default, if a time is set it will not be reset afer a reboot.
63+
By default, if a time is set it will not be reset after a reboot.
6464

6565
Using `begin(true)` or `begin(true, HOUR_24)` will reset the RTC registers.
6666

0 commit comments

Comments
 (0)