Skip to content

Commit 8cddc3f

Browse files
Refactor CI workflow for building and testing
1 parent 2a6df02 commit 8cddc3f

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/c-cpp.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,17 @@ jobs:
2828
brew install make
2929
3030
- name: Build with Make
31+
working-directory: ./mas
3132
run: make
3233

3334
- name: Test executable exists
35+
working-directory: ./mas
3436
run: |
35-
if [ "${{ runner.os }}" == "Windows" ]; then
36-
if [ ! -f "mas.exe" ]; then
37-
echo "Build failed: mas.exe not found"
38-
exit 1
39-
fi
40-
else
41-
if [ ! -f "mas.exe" ]; then
42-
echo "Build failed: mas.exe not found"
43-
exit 1
44-
fi
37+
if [ ! -f "mas.exe" ]; then
38+
echo "Build failed: mas.exe not found"
39+
exit 1
4540
fi
4641
4742
- name: Clean build artifacts
43+
working-directory: ./maw
4844
run: make clean

0 commit comments

Comments
 (0)