Skip to content

Commit 620295c

Browse files
committed
changed startupfile detection logic
1 parent 9357a57 commit 620295c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)