Skip to content

G2-P5 & G2-P6: Branch/Switch/Checkout/Merge #27

G2-P5 & G2-P6: Branch/Switch/Checkout/Merge

G2-P5 & G2-P6: Branch/Switch/Checkout/Merge #27

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y cmake libcmocka-dev libzstd-dev
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew update
brew install cmake cmocka zstd
- name: Configure
run: cmake -S . -B build
- name: Build
run: cmake --build build
- name: Test
run: ctest --test-dir build --output-on-failure