File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,16 @@ jobs:
6666 echo "Contents of main:"
6767 cat ${{github.workspace}}/project/main.cpp
6868
69+ - name : Check for startup file
70+ id : check_files
71+ uses : andstor/file-existence-action@v3
72+ with :
73+ files : " ${{github.workspace}}/targets/chip/${{matrix.cpu}}/startup.cpp"
74+
6975 - name : Add startup file (if it exists)
70- if : ${{ hashFiles('${{github.workspace}}/targets/chip/${{matrix.cpu}}/startup.cpp') != '' }}
76+ if : if: steps.check_files.outputs.files_exists == 'true'
7177 run : |
72- sed -i '6 s/# //' . /project/CMakeLists.txt
78+ sed -i '6 s/# //' ${{github.workspace}} /project/CMakeLists.txt
7379
7480 - name : Configure CMake
7581 # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
You can’t perform that action at this time.
0 commit comments