Skip to content

Paragraph Layout and Remapped Buffer #7

Paragraph Layout and Remapped Buffer

Paragraph Layout and Remapped Buffer #7

Workflow file for this run

name: CI
on:
push:
branches: [ main, dev ]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: ${{ matrix.os == 'windows-latest' && 30 || 20 }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
env:
BUILD_DIR: cmake-build
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache CMake build
uses: actions/cache@v4
with:
path: ${{ env.BUILD_DIR }}
key: ${{ runner.os }}-cmake-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake', '**/ci.yml') }}
restore-keys: |
${{ runner.os }}-cmake-
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake ninja-build
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: brew install ninja
- name: Setup MSVC (Windows)
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Configure (Windows)
if: runner.os == 'Windows'
run: cmake -S . -B ${{ env.BUILD_DIR }} -G Ninja -DCMAKE_BUILD_TYPE=Debug -DERBSLAND_COLOR_TERM_ENABLE_TESTS=ON -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl
- name: Configure (non-Windows)
if: runner.os != 'Windows'
run: cmake -S . -B ${{ env.BUILD_DIR }} -G Ninja -DCMAKE_BUILD_TYPE=Debug -DERBSLAND_COLOR_TERM_ENABLE_TESTS=ON
- name: Build
run: cmake --build ${{ env.BUILD_DIR }} --parallel
- name: Run tests
shell: bash
working-directory: ${{ env.BUILD_DIR }}
run: ctest --output-on-failure