Skip to content

Commit c20e3d3

Browse files
committed
ci: update cmake-multi-platform.yml
1 parent 5232ccf commit c20e3d3

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CMake for Multiple Platforms
1+
name: CMake on Multiple Platforms
22

33
on:
44
push:
@@ -12,7 +12,6 @@ jobs:
1212
matrix:
1313
os: [ubuntu-latest, windows-latest]
1414
build_type: [Release]
15-
# Define compilers for each OS.
1615
include:
1716
- os: windows-latest
1817
c_compiler: cl
@@ -29,6 +28,12 @@ jobs:
2928
- name: Checkout source code
3029
uses: actions/checkout@v4
3130

31+
- name: Clean build directory
32+
run: |
33+
if [ -d "${{ github.workspace }}/build" ]; then
34+
rm -rf "${{ github.workspace }}/build"
35+
fi
36+
3237
- name: Set build output directory
3338
id: build_dir
3439
run: |
@@ -51,4 +56,4 @@ jobs:
5156
${{ steps.build_dir.outputs.BUILD_DIR }}/shuttle_system
5257
else
5358
${{ steps.build_dir.outputs.BUILD_DIR }}\\shuttle_system.exe
54-
fi
59+
fi

0 commit comments

Comments
 (0)