update makefile and pipeline workflow

This commit is contained in:
Willian Paixao 2021-12-11 20:33:58 +01:00
parent 095466c270
commit d46cc407df
No known key found for this signature in database
GPG Key ID: 4BB3AE4D48EF1764
4 changed files with 22 additions and 18 deletions

View File

@ -10,11 +10,14 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Compile beats-time app - name: Compile starter-project app
run: make run: make
working-directory: 'apps/beats-time/make' working-directory: 'apps/starter-project'
- name: Compile accelerometer-test app
run: make
working-directory: 'apps/accelerometer-test'
- name: Upload UF2 - name: Upload UF2
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: watch.uf2 name: watch.uf2.uf2
path: apps/beats-time/make/build/watch.uf2 path: apps/**/build/watch.uf2

1
.gitignore vendored
View File

@ -13,6 +13,7 @@
*.uf2 *.uf2
*srec *srec
.DS_Store .DS_Store
.idea/
.vs .vs
.vscode .vscode
docs/ docs/

View File

@ -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

View File

@ -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