Skip to content
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

CI: add GitHub Actions workflows for build tests #1

Closed
wants to merge 4 commits into from
Closed
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
4 changes: 0 additions & 4 deletions .ci/Board/Driver/Driver_ETH_MAC.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ static int32_t ARM_ETH_MAC_PHY_Write(uint8_t phy_addr, uint8_t reg_addr, uint16_
return 0;
}

static void ARM_ETH_MAC_SignalEvent(uint32_t event)
{
}

// End ETH MAC Interface

extern \
Expand Down
2 changes: 1 addition & 1 deletion .ci/Board/Driver/Driver_ETH_PHY.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static int32_t ARM_ETH_PHY_SetMode(uint32_t mode)

static ARM_ETH_LINK_STATE ARM_ETH_PHY_GetLinkState(void)
{
ARM_ETH_LINK_STATE link_state = { 0 };
ARM_ETH_LINK_STATE link_state = { ARM_ETH_LINK_DOWN };
return link_state;
}

Expand Down
5 changes: 0 additions & 5 deletions .ci/Board/Driver/Driver_MCI.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,6 @@ static ARM_MCI_STATUS ARM_MCI_GetStatus(void)
return mci_status;
}

static void ARM_MCI_SignalEvent(uint32_t event)
{
// function body
}

// End MCI Interface

extern \
Expand Down
5 changes: 0 additions & 5 deletions .ci/Board/Driver/Driver_USART.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ static ARM_USART_MODEM_STATUS ARM_USART_GetModemStatus(void)
return modem_status;
}

static void ARM_USART_SignalEvent(uint32_t event)
{
// function body
}

// End USART Interface

extern \
Expand Down
10 changes: 0 additions & 10 deletions .ci/Board/Driver/Driver_USBD.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,6 @@ static uint16_t ARM_USBD_GetFrameNumber(void)
return 0U;
}

static void ARM_USBD_SignalDeviceEvent(uint32_t event)
{
// function body
}

static void ARM_USBD_SignalEndpointEvent(uint8_t ep_addr, uint32_t ep_event)
{
// function body
}

// End USBD Interface

extern \
Expand Down
12 changes: 1 addition & 11 deletions .ci/Board/Driver/Driver_USBH.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static ARM_USBH_PIPE_HANDLE ARM_USBH_PipeCreate(uint8_t dev_addr,
uint16_t ep_max_packet_size,
uint8_t ep_interval)
{
return NULL;
return (ARM_USBH_PIPE_HANDLE)NULL;
}

static int32_t ARM_USBH_PipeModify(ARM_USBH_PIPE_HANDLE pipe_hndl,
Expand Down Expand Up @@ -160,16 +160,6 @@ static uint16_t ARM_USBH_GetFrameNumber(void)
return 0U;
}

static void ARM_USBH_SignalPortEvent(uint8_t port, uint32_t event)
{
// function body
}

static void ARM_USBH_SignalPipeEvent(ARM_USBH_PIPE_HANDLE pipe_hndl, uint32_t event)
{
// function body
}

// End USBH Interface

extern \
Expand Down
24 changes: 24 additions & 0 deletions .ci/FileSystem/Examples/Examples.csolution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
solution:
created-for: CMSIS-Toolbox@2.0.0

cdefault:

packs:
- pack: ARM::Cortex_DFP

target-types:
- type: CM4
device: ARMCM4
variables:
- Board-Layer: ../../../.ci//Board/Board.clayer.yml

build-types:
- type: Debug
debug: on
optimize: debug
- type: Release
debug: off
optimize: balanced

projects:
- project: ../../../Examples/FileSystem/File_Demo/File_Demo.cproject.yml
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ solution:
optimize: balanced

projects:
- project: Library/Library.cproject.yml
- project: ../../Examples/FileSystem/File_Demo/File_Demo.cproject.yml
- project: ./Library.cproject.yml
File renamed without changes.
31 changes: 31 additions & 0 deletions .ci/Network/Examples/Examples.csolution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
solution:
created-for: CMSIS-Toolbox@2.0.0

cdefault:

packs:
- pack: ARM::Cortex_DFP

target-types:
- type: CM4
device: ARMCM4
variables:
- Board-Layer: ../../../.ci//Board/Board.clayer.yml

build-types:
- type: Debug
debug: on
optimize: debug
- type: Release
debug: off
optimize: balanced

projects:
- project: ../../../Examples/Network/BSD_Client/BSD_Client.cproject.yml
- project: ../../../Examples/Network/BSD_Server/BSD_Server.cproject.yml
- project: ../../../Examples/Network/FTP_Server/FTP_Server.cproject.yml
- project: ../../../Examples/Network/HTTP_Server/HTTP_Server.cproject.yml
- project: ../../../Examples/Network/HTTP_Upload/HTTP_Upload.cproject.yml
- project: ../../../Examples/Network/SMTP_Client/SMTP_Client.cproject.yml
- project: ../../../Examples/Network/SNMP_Agent/SNMP_Agent.cproject.yml
- project: ../../../Examples/Network/Telnet_Server/Telnet_Server.cproject.yml
File renamed without changes.
26 changes: 26 additions & 0 deletions .ci/Network/Library/Library.csolution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
solution:
created-for: CMSIS-Toolbox@2.0.0

cdefault:

packs:
- pack: ARM::Cortex_DFP

target-types:
- type: CM4
device: ARMCM4
variables:
- Board-Layer: ../../../.ci//Board/Board.clayer.yml

build-types:
- type: Debug
debug: on
optimize: debug
define:
- NET_DEBUG_ENABLE : 1
- type: Release
debug: off
optimize: balanced

projects:
- project: ./Library.cproject.yml
File renamed without changes.
34 changes: 0 additions & 34 deletions .ci/Network/Network.csolution.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .ci/USB/Device/Examples/Examples.csolution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
solution:
created-for: CMSIS-Toolbox@2.0.0

cdefault:

packs:
- pack: ARM::Cortex_DFP

target-types:
- type: CM4
device: ARMCM4
variables:
- Board-Layer: ../../../../.ci//Board/Board.clayer.yml

build-types:
- type: Debug
debug: on
optimize: debug
- type: Release
debug: off
optimize: balanced

projects:
- project: ../../../../Examples/USB/Device/HID/HID.cproject.yml
- project: ../../../../Examples/USB/Device/MassStorage/MassStorage.cproject.yml
- project: ../../../../Examples/USB/Device/VirtualCOM/VirtualCOM.cproject.yml
60 changes: 60 additions & 0 deletions .ci/USB/Device/Examples/cdefault.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
default:

compiler: AC6

misc:
- for-compiler: AC6
C-CPP:
- -Wno-macro-redefined
- -Wno-pragma-pack
- -Wno-parentheses-equality
- -Wno-license-management
C:
- -std=gnu11
ASM:
- -masm=auto
Link:
- --entry=Reset_Handler
- --map
- --info summarysizes
- --summary_stderr
- --diag_suppress=L6314W

- for-compiler: GCC
ASM:
- -gdwarf-4
C-CPP:
- -masm-syntax-unified
- -fomit-frame-pointer
- -ffunction-sections
- -fdata-sections
- -gdwarf-4
C:
- -std=gnu11
Link:
- --specs=nano.specs
- -Wl,-Map=$elf()$.map
- -Wl,--gc-sections

- for-compiler: CLANG
ASM:
- -gdwarf-4
C-CPP:
- -fomit-frame-pointer
- -ffunction-sections
- -fdata-sections
- -gdwarf-4
C:
- -std=gnu11
Link:
- -lcrt0
- -Wl,-Map=$elf()$.map
- -Wl,--gc-sections

- for-compiler: IAR
C-CPP:
- -e
- --dlib_config DLib_Config_Full.h
Link:
- --semihosting
- --map=$elf()$.map
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,4 @@ solution:
optimize: balanced

projects:
- project: Library/Library.cproject.yml
- project: ../../../Examples/USB/Device/HID/HID.cproject.yml
- project: ../../../Examples/USB/Device/MassStorage/MassStorage.cproject.yml
- project: ../../../Examples/USB/Device/VirtualCOM/VirtualCOM.cproject.yml
- project: ./Library.cproject.yml
60 changes: 60 additions & 0 deletions .ci/USB/Device/Library/cdefault.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
default:

compiler: AC6

misc:
- for-compiler: AC6
C-CPP:
- -Wno-macro-redefined
- -Wno-pragma-pack
- -Wno-parentheses-equality
- -Wno-license-management
C:
- -std=gnu11
ASM:
- -masm=auto
Link:
- --entry=Reset_Handler
- --map
- --info summarysizes
- --summary_stderr
- --diag_suppress=L6314W

- for-compiler: GCC
ASM:
- -gdwarf-4
C-CPP:
- -masm-syntax-unified
- -fomit-frame-pointer
- -ffunction-sections
- -fdata-sections
- -gdwarf-4
C:
- -std=gnu11
Link:
- --specs=nano.specs
- -Wl,-Map=$elf()$.map
- -Wl,--gc-sections

- for-compiler: CLANG
ASM:
- -gdwarf-4
C-CPP:
- -fomit-frame-pointer
- -ffunction-sections
- -fdata-sections
- -gdwarf-4
C:
- -std=gnu11
Link:
- -lcrt0
- -Wl,-Map=$elf()$.map
- -Wl,--gc-sections

- for-compiler: IAR
C-CPP:
- -e
- --dlib_config DLib_Config_Full.h
Link:
- --semihosting
- --map=$elf()$.map
25 changes: 25 additions & 0 deletions .ci/USB/Host/Examples/Examples.csolution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
solution:
created-for: CMSIS-Toolbox@2.0.0

cdefault:

packs:
- pack: ARM::Cortex_DFP

target-types:
- type: CM4
device: ARMCM4
variables:
- Board-Layer: ../../../../.ci//Board/Board.clayer.yml

build-types:
- type: Debug
debug: on
optimize: debug
- type: Release
debug: off
optimize: balanced

projects:
- project: ../../../../Examples/USB/Host/Keyboard/Keyboard.cproject.yml
- project: ../../../../Examples/USB/Host/MassStorage/MassStorage.cproject.yml
Loading
Loading