-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 772 Bytes
/
Copy pathci.yml
File metadata and controls
34 lines (27 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: C++ CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Install CMake and dependencies
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake g++
# Step 3: Configure the project with CMake
- name: Configure CMake
run: cmake -B build -S .
# Step 4: Build the project
- name: Build project
run: cmake --build build
# Step 5: Run the application (optional)
- name: Run tests (or main app)
run: ./build/problems/max_unique_split && ./build/arrays/array # todo