Skip to content

Update ci.yaml To Run On Any Commit/Push #1

Update ci.yaml To Run On Any Commit/Push

Update ci.yaml To Run On Any Commit/Push #1

Workflow file for this run

name: CMake Build and Test
on:
push: # Trigger on any push to any branch
pull_request: # Trigger on any PR
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Set up dependencies
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake gcc g++ ninja-build libcurl4-openssl-dev pkg-config
# Configure the build
- name: Configure with CMake
run: |
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
# Build the project
- name: Build the project
run: |
ninja -C build
# Run tests
- name: Run tests
run: |
./build/bin/reai_test