on push, test minimal program on all platforms

This commit is contained in:
joeycastillo 2024-07-10 17:49:10 -04:00
parent 52e04210a9
commit 66bff530d9
11 changed files with 164 additions and 2 deletions

View File

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

View 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
View 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;
}

View 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
View 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;
}

View 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
View 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;
}

View 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
View 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;
}

View 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
View 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;
}