Skip to content

CI deployment using GitHub actions #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/Continuous-Integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: STM32LowPower Continuous Integration
on:
push:
branches:
- master
paths-ignore:
- '*'
- '**.md'
- '**.txt'
pull_request:
paths-ignore:
- '*'
- '**.md'
- '**.txt'
jobs:
astyle_check:
runs-on: ubuntu-latest
name: AStyle check
steps:
# First of all, clone the repo using the checkout action.
- name: Checkout
uses: actions/checkout@master

- name: Astyle check
id: Astyle
uses: stm32duino/actions/astyle-check@master

# Use the output from the `Astyle` step
- name: Astyle Errors
if: failure()
run: |
cat ${{ steps.Astyle.outputs.astyle-result }}
exit 1
spell-check:
runs-on: ubuntu-latest
name: Spell check
steps:
- uses: actions/checkout@master
- uses: arduino/actions/libraries/spell-check@master
# with:
# ignore-words-list: "./extras/codespell-ignore-words-list.txt"
lib_build:
runs-on: ubuntu-latest
name: Library compilation
steps:
# First of all, clone the repo using the checkout action.
- name: Checkout
uses: actions/checkout@master

- name: Compilation
id: Compile
uses: stm32duino/actions/compile-examples@master
with:
board-pattern: ".*NUCLEO.*"
libraries: "STM32duino RTC"

# Use the output from the `Compile` step
- name: Compilation Errors
if: failure()
run: |
cat ${{ steps.Compile.outputs.compile-result }}
exit 1
2 changes: 1 addition & 1 deletion src/STM32LowPower.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

// Check if PWR HAL enable in variants/board_name/stm32yzxx_hal_conf.h
#ifndef HAL_PWR_MODULE_ENABLED
#error "PWR configuration is missing. Check flag HAL_PWR_MODULE_ENABLED in variants/board_name/stm32yzxx_hal_conf.h"
#error "PWR configuration is missing. Check flag HAL_PWR_MODULE_ENABLED in variants/board_name/stm32yzxx_hal_conf.h"
#endif

#include "STM32RTC.h"
Expand Down