Skip to content

Commit 9357a57

Browse files
committed
Added step to enable startup file if it exists
1 parent d4afe8d commit 9357a57

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ jobs:
6565
6666
echo "Contents of main:"
6767
cat ${{github.workspace}}/project/main.cpp
68-
68+
69+
- name: Add startup file (if it exists)
70+
if: ${{ hashFiles('${{github.workspace}}/targets/chip/${{matrix.cpu}}/startup.cpp') != '' }}
71+
run: |
72+
sed -i '6 s/# //' ./project/CMakeLists.txt
73+
6974
- name: Configure CMake
7075
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
7176
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type

0 commit comments

Comments
 (0)