Skip to content

Commit be169ba

Browse files
authored
Update ci.yml
1 parent 7652cff commit be169ba

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,17 @@ jobs:
3232
run: |
3333
# Navigate to the correct project directory
3434
cd data-structures/${{ matrix.project }}
35-
# Run the build script for the project
36-
./build.sh
35+
# Create the build directory if it doesn't exist
36+
if [ ! -d "build" ]; then
37+
mkdir build
38+
fi
39+
# Run CMake in the build directory
40+
cd build
41+
cmake -DCMAKE_CXX_FLAGS="--coverage" -DCMAKE_EXE_LINKER_FLAGS="--coverage" ..
42+
# Build the project using make
43+
make
44+
# Return to the project root directory
45+
cd ..
3746
./bin/test_${{ matrix.project }}
3847
./clean.sh
3948
# Step 4:

0 commit comments

Comments
 (0)