Skip to content

Use matrix strategies #100

Use matrix strategies

Use matrix strategies #100

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml: (Line: 34, Col: 15, Idx: 786) - (Line: 34, Col: 22, Idx: 793): While scanning a plain scalar, find unexpected ':'.
on: [push, pull_request, workflow_dispatch]
jobs:
ubuntu:
strategy:
matrix:
CXX: [g++ -std=c++11,
g++ -std=c++14,
g++ -std=c++17,
g++ -std=c++20,
g++ -std=c++23,
clang++ -std=c++11,
clang++ -std=c++14,
clang++ -std=c++17,
clang++ -std=c++20,
clang++ -std=c++23]
name: ${{ matrix.CXX }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install Valgrind
run: sudo apt update && sudo apt install -y valgrind
- name: Run tests
working-directory: ./test
run: make SILENT=1 CXX="${{ matrix.CXX }}" -j$(nproc)
windows:
strategy:
matrix:
CXX: [cl /std:c++14,
cl /std:c++17,
cl /std:c++20,
cl /std:c++latest]
name: MSVC [${{ matrix.CXX }}]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Install GNU Make
run: choco install make
- name: Run tests
shell: cmd
working-directory: .\test
run: make SILENT=1 CXX="${{ matrix.CXX }}" -f makefile.msvc