mirror of
https://github.com/joeycastillo/gossamer.git
synced 2025-10-29 11:10:59 +00:00
on push, test minimal program on all platforms
This commit is contained in:
parent
52e04210a9
commit
66bff530d9
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -16,6 +16,18 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
- name: Work around CVE-2022-24765
|
||||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
- name: Compile blink app
|
||||
- name: Validate changes on SAM D11
|
||||
run: make
|
||||
working-directory: 'examples/blink'
|
||||
working-directory: 'tests/blink_samd11'
|
||||
- name: Validate changes on SAM D21
|
||||
run: make
|
||||
working-directory: 'tests/blink_samd21'
|
||||
- name: Validate changes on SAM D51
|
||||
run: make
|
||||
working-directory: 'tests/blink_samd51'
|
||||
- name: Validate changes on SAM L21
|
||||
run: make
|
||||
working-directory: 'tests/blink_saml21'
|
||||
- name: Validate changes on SAM L22
|
||||
run: make
|
||||
working-directory: 'tests/blink_saml22'
|
||||
|
||||
15
tests/blink_samd11/Makefile
Normal file
15
tests/blink_samd11/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
# Keep this first line.
|
||||
GOSSAMER_PATH = ../..
|
||||
|
||||
# If your firmware targets a specific board, specify it here,
|
||||
# or omit it and provide it on the command line (make BOARD=foo).
|
||||
BOARD=feather_d11_soic
|
||||
|
||||
# Leave this line here.
|
||||
include $(GOSSAMER_PATH)/make.mk
|
||||
|
||||
SRCS += \
|
||||
./app.c \
|
||||
|
||||
# Finally, leave this line at the bottom of the file.
|
||||
include $(GOSSAMER_PATH)/rules.mk
|
||||
15
tests/blink_samd11/app.c
Normal file
15
tests/blink_samd11/app.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include "app.h"
|
||||
#include "delay.h"
|
||||
|
||||
void app_init(void) {
|
||||
}
|
||||
|
||||
void app_setup(void) {
|
||||
HAL_GPIO_LED_out();
|
||||
}
|
||||
|
||||
bool app_loop(void) {
|
||||
HAL_GPIO_LED_toggle();
|
||||
delay_ms(500);
|
||||
return false;
|
||||
}
|
||||
15
tests/blink_samd21/Makefile
Normal file
15
tests/blink_samd21/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
# Keep this first line.
|
||||
GOSSAMER_PATH = ../..
|
||||
|
||||
# If your firmware targets a specific board, specify it here,
|
||||
# or omit it and provide it on the command line (make BOARD=foo).
|
||||
BOARD=feather_m0
|
||||
|
||||
# Leave this line here.
|
||||
include $(GOSSAMER_PATH)/make.mk
|
||||
|
||||
SRCS += \
|
||||
./app.c \
|
||||
|
||||
# Finally, leave this line at the bottom of the file.
|
||||
include $(GOSSAMER_PATH)/rules.mk
|
||||
15
tests/blink_samd21/app.c
Normal file
15
tests/blink_samd21/app.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include "app.h"
|
||||
#include "delay.h"
|
||||
|
||||
void app_init(void) {
|
||||
}
|
||||
|
||||
void app_setup(void) {
|
||||
HAL_GPIO_LED_out();
|
||||
}
|
||||
|
||||
bool app_loop(void) {
|
||||
HAL_GPIO_LED_toggle();
|
||||
delay_ms(500);
|
||||
return false;
|
||||
}
|
||||
15
tests/blink_samd51/Makefile
Normal file
15
tests/blink_samd51/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
# Keep this first line.
|
||||
GOSSAMER_PATH = ../..
|
||||
|
||||
# If your firmware targets a specific board, specify it here,
|
||||
# or omit it and provide it on the command line (make BOARD=foo).
|
||||
BOARD=pybadge_m4
|
||||
|
||||
# Leave this line here.
|
||||
include $(GOSSAMER_PATH)/make.mk
|
||||
|
||||
SRCS += \
|
||||
./app.c \
|
||||
|
||||
# Finally, leave this line at the bottom of the file.
|
||||
include $(GOSSAMER_PATH)/rules.mk
|
||||
15
tests/blink_samd51/app.c
Normal file
15
tests/blink_samd51/app.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include "app.h"
|
||||
#include "delay.h"
|
||||
|
||||
void app_init(void) {
|
||||
}
|
||||
|
||||
void app_setup(void) {
|
||||
HAL_GPIO_LED_out();
|
||||
}
|
||||
|
||||
bool app_loop(void) {
|
||||
HAL_GPIO_LED_toggle();
|
||||
delay_ms(500);
|
||||
return false;
|
||||
}
|
||||
15
tests/blink_saml21/Makefile
Normal file
15
tests/blink_saml21/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
# Keep this first line.
|
||||
GOSSAMER_PATH = ../..
|
||||
|
||||
# If your firmware targets a specific board, specify it here,
|
||||
# or omit it and provide it on the command line (make BOARD=foo).
|
||||
BOARD=feather_low_energy
|
||||
|
||||
# Leave this line here.
|
||||
include $(GOSSAMER_PATH)/make.mk
|
||||
|
||||
SRCS += \
|
||||
./app.c \
|
||||
|
||||
# Finally, leave this line at the bottom of the file.
|
||||
include $(GOSSAMER_PATH)/rules.mk
|
||||
15
tests/blink_saml21/app.c
Normal file
15
tests/blink_saml21/app.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include "app.h"
|
||||
#include "delay.h"
|
||||
|
||||
void app_init(void) {
|
||||
}
|
||||
|
||||
void app_setup(void) {
|
||||
HAL_GPIO_LED_out();
|
||||
}
|
||||
|
||||
bool app_loop(void) {
|
||||
HAL_GPIO_LED_toggle();
|
||||
delay_ms(500);
|
||||
return false;
|
||||
}
|
||||
15
tests/blink_saml22/Makefile
Normal file
15
tests/blink_saml22/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
# Keep this first line.
|
||||
GOSSAMER_PATH = ../..
|
||||
|
||||
# If your firmware targets a specific board, specify it here,
|
||||
# or omit it and provide it on the command line (make BOARD=foo).
|
||||
BOARD=sensorwatch_red
|
||||
|
||||
# Leave this line here.
|
||||
include $(GOSSAMER_PATH)/make.mk
|
||||
|
||||
SRCS += \
|
||||
./app.c \
|
||||
|
||||
# Finally, leave this line at the bottom of the file.
|
||||
include $(GOSSAMER_PATH)/rules.mk
|
||||
15
tests/blink_saml22/app.c
Normal file
15
tests/blink_saml22/app.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include "app.h"
|
||||
#include "delay.h"
|
||||
|
||||
void app_init(void) {
|
||||
}
|
||||
|
||||
void app_setup(void) {
|
||||
HAL_GPIO_LED_out();
|
||||
}
|
||||
|
||||
bool app_loop(void) {
|
||||
HAL_GPIO_LED_toggle();
|
||||
delay_ms(500);
|
||||
return false;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user