Skip to content

Merge pull request #3 from aymaneelmaini/add-ci-pipeline #1

Merge pull request #3 from aymaneelmaini/add-ci-pipeline

Merge pull request #3 from aymaneelmaini/add-ci-pipeline #1

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
checks: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake
- name: Configure CMake
run: |
mkdir -p build
cd build
cmake ..
- name: Build
run: cmake --build build
- name: Run tests
run: cd build && make test