WIP #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |