Skip to content

Commit

Permalink
Update GitHub Actions build tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
stellar-aria committed Jun 14, 2023
1 parent c7c67ba commit 0366831
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ jobs:
build-makefile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup arm-none-eabi-gcc
uses: fiam/arm-none-eabi-gcc@v1
with:
Expand All @@ -42,12 +45,15 @@ jobs:
- name: Build Library
run: make -j
- name: Build Examples
run: ./ci/build_examples.py -f core doc src tests
run: ./ci/build_examples.py -f core doc src tests Drivers

build-cmake:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup arm-none-eabi-gcc
uses: fiam/arm-none-eabi-gcc@v1
with:
Expand All @@ -57,7 +63,6 @@ jobs:
with:
cmake-version: '3.20.x'
- name: Configure Library

run: cmake -S . -B build -G "Unix Makefiles" -D CMAKE_TOOLCHAIN_FILE=cmake/toolchains/stm32h750xx.cmake -D TOOLCHAIN_PREFIX=$(which arm-none-eabi-gcc | sed -e "s/bin\/arm-none-eabi-gcc//")
- name: Build Library
run: cmake --build build
8 changes: 4 additions & 4 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"${workspaceRoot}/tests/googletest/googletest/include",
"${workspaceRoot}/src/sys",
"${workspaceRoot}/src/usbd",
"${workspaceRoot}/Drivers/CMSIS/Core/Include",
"${workspaceRoot}/Drivers/CMSIS/Device/ST/STM32H7xx/Include",
"${workspaceRoot}/Drivers/CMSIS_5/CMSIS/Core/Include",
"${workspaceRoot}/Drivers/CMSIS-Device/ST/STM32H7xx/Include",
"${workspaceRoot}/Drivers/STM32H7xx_HAL_Driver/Inc",
"${workspaceRoot}/Drivers/STM32H7xx_HAL_Driver/Inc/Legacy",
"${workspaceRoot}/Middlewares/ST/STM32_USB_Device_Library/Core/Inc",
Expand Down Expand Up @@ -40,8 +40,8 @@
"${workspaceRoot}/src",
"${workspaceRoot}/src/sys",
"${workspaceRoot}/src/usbd",
"${workspaceRoot}/Drivers/CMSIS/Core/Include",
"${workspaceRoot}/Drivers/CMSIS/Device/ST/STM32H7xx/Include",
"${workspaceRoot}/Drivers/CMSIS_5/CMSIS/Core/Include",
"${workspaceRoot}/Drivers/CMSIS-Device/ST/STM32H7xx/Include",
"${workspaceRoot}/Drivers/STM32H7xx_HAL_Driver/Inc",
"${workspaceRoot}/Drivers/STM32H7xx_HAL_Driver/Inc/Legacy",
"${workspaceRoot}/Middlewares/ST/STM32_USB_Device_Library/Core/Inc",
Expand Down

0 comments on commit 0366831

Please sign in to comment.