Merge pull request #24 from willianpaixao/add-github-actions
introduce github actions
This commit is contained in:
commit
e8e9a0e2d8
27
.github/workflows/build.yml
vendored
Normal file
27
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- gh-pages
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
container:
|
||||||
|
image: ghcr.io/armmbed/mbed-os-env:latest
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Compile starter-project app
|
||||||
|
run: make
|
||||||
|
working-directory: 'apps/starter-project'
|
||||||
|
- name: Compile accelerometer-test app
|
||||||
|
run: make
|
||||||
|
working-directory: 'apps/accelerometer-test'
|
||||||
|
- name: Upload UF2
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: watch.uf2
|
||||||
|
path: apps/**/build/watch.uf2
|
22
.github/workflows/gh-pages.yml
vendored
Normal file
22
.github/workflows/gh-pages.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: GitHub Pages
|
||||||
|
|
||||||
|
#on:
|
||||||
|
# push:
|
||||||
|
# branches:
|
||||||
|
# - main
|
||||||
|
on: [pull_request, push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
gh-pages:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Doxygen Action
|
||||||
|
uses: mattnotmitt/doxygen-action@v1
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_branch: gh-pages
|
||||||
|
publish_dir: docs/
|
16
.gitignore
vendored
16
.gitignore
vendored
@ -1,17 +1,19 @@
|
|||||||
.DS_Store
|
**/build/
|
||||||
*.s#*
|
|
||||||
*.b#*
|
*.b#*
|
||||||
*.pro
|
|
||||||
*.job
|
|
||||||
|
|
||||||
*.bin
|
*.bin
|
||||||
|
*.d
|
||||||
*.elf
|
*.elf
|
||||||
*.hex
|
*.hex
|
||||||
|
*.job
|
||||||
*.lss
|
*.lss
|
||||||
*.map
|
*.map
|
||||||
|
*.o
|
||||||
|
*.pro
|
||||||
|
*.s#*
|
||||||
*.uf2
|
*.uf2
|
||||||
*srec
|
*srec
|
||||||
*.o
|
.DS_Store
|
||||||
*.d
|
.idea/
|
||||||
.vs
|
.vs
|
||||||
.vscode
|
.vscode
|
||||||
|
docs/
|
2
Doxyfile
2
Doxyfile
@ -8,7 +8,7 @@ PROJECT_NAME = "Sensor Watch"
|
|||||||
PROJECT_NUMBER = "0.0.0"
|
PROJECT_NUMBER = "0.0.0"
|
||||||
PROJECT_BRIEF = "A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller."
|
PROJECT_BRIEF = "A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller."
|
||||||
PROJECT_LOGO =
|
PROJECT_LOGO =
|
||||||
OUTPUT_DIRECTORY = "../Sensor-Watch-Documentation"
|
OUTPUT_DIRECTORY = "."
|
||||||
CREATE_SUBDIRS = NO
|
CREATE_SUBDIRS = NO
|
||||||
ALLOW_UNICODE_NAMES = NO
|
ALLOW_UNICODE_NAMES = NO
|
||||||
OUTPUT_LANGUAGE = English
|
OUTPUT_LANGUAGE = English
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
TOP = ../../..
|
TOP = ../..
|
||||||
include $(TOP)/make.mk
|
include $(TOP)/make.mk
|
||||||
|
|
||||||
INCLUDES += \
|
INCLUDES += \
|
||||||
-I../
|
-I./
|
||||||
|
|
||||||
SRCS += \
|
SRCS += \
|
||||||
../app.c
|
./app.c
|
||||||
|
|
||||||
include $(TOP)/rules.mk
|
include $(TOP)/rules.mk
|
1
apps/accelerometer-test/make/.gitignore
vendored
1
apps/accelerometer-test/make/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
build/
|
|
1
apps/beats-time/make/.gitignore
vendored
1
apps/beats-time/make/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
build/
|
|
1
apps/buzzer-test/make/.gitignore
vendored
1
apps/buzzer-test/make/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
build/
|
|
1
apps/spi-test/make/.gitignore
vendored
1
apps/spi-test/make/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
build/
|
|
@ -1,26 +1,26 @@
|
|||||||
# Leave these lines at the top of the file.
|
# Leave these lines at the top of the file.
|
||||||
# TOP should get us to the root of the project...
|
# TOP should get us to the root of the project...
|
||||||
TOP = ../../..
|
TOP = ../..
|
||||||
# ...and make.mk has all the watch library sources and includes.
|
# ...and make.mk has all the watch library sources and includes.
|
||||||
include $(TOP)/make.mk
|
include $(TOP)/make.mk
|
||||||
|
|
||||||
# If you add any other subdirectories with header files you wish to include, add them after ../
|
# If you add any other subdirectories with header files you wish to include, add them after ./
|
||||||
# Note that you will need to add a backslash at the end of any line you wish to continue, i.e.
|
# Note that you will need to add a backslash at the end of any line you wish to continue, i.e.
|
||||||
# INCLUDES += \
|
# INCLUDES += \
|
||||||
# -I../ \
|
# -I./ \
|
||||||
# -I../drivers/ \
|
# -I drivers/ \
|
||||||
# -I../utils/
|
# -I utils/
|
||||||
INCLUDES += \
|
INCLUDES += \
|
||||||
-I../ \
|
-I./ \
|
||||||
|
|
||||||
# If you add any other source files you wish to compile, add them after ../app.c
|
# If you add any other source files you wish to compile, add them after app.c
|
||||||
# Note that you will need to add a backslash at the end of any line you wish to continue, i.e.
|
# Note that you will need to add a backslash at the end of any line you wish to continue, i.e.
|
||||||
# SRCS += \
|
# SRCS += \
|
||||||
# ../app.c \
|
# ./app.c \
|
||||||
# ../drivers/bmp280.c \
|
# ./drivers/bmp280.c \
|
||||||
# ../utils/temperature.c
|
# ./utils/temperature.c
|
||||||
SRCS += \
|
SRCS += \
|
||||||
../app.c \
|
./app.c \
|
||||||
|
|
||||||
# Leave this line at the bottom of the file; rules.mk has all the targets for making your project.
|
# Leave this line at the bottom of the file; rules.mk has all the targets for making your project.
|
||||||
include $(TOP)/rules.mk
|
include $(TOP)/rules.mk
|
1
apps/starter-project/make/.gitignore
vendored
1
apps/starter-project/make/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
build/
|
|
3
make.mk
3
make.mk
@ -20,7 +20,8 @@ else
|
|||||||
MKDIR = mkdir
|
MKDIR = mkdir
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -W -Wall --std=gnu99 -Os
|
CFLAGS += -W -Wall -Wextra -Wmissing-prototypes -Wmissing-declarations
|
||||||
|
CFLAGS += --std=gnu99 -Os
|
||||||
CFLAGS += -fno-diagnostics-show-caret
|
CFLAGS += -fno-diagnostics-show-caret
|
||||||
CFLAGS += -fdata-sections -ffunction-sections
|
CFLAGS += -fdata-sections -ffunction-sections
|
||||||
CFLAGS += -funsigned-char -funsigned-bitfields
|
CFLAGS += -funsigned-char -funsigned-bitfields
|
||||||
|
Loading…
x
Reference in New Issue
Block a user