Skip to content

coding style

coding style #34

Workflow file for this run

name: CI
on:
push:
pull_request:
branches: [main]
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
fail-fast: false
matrix:
toolchain:
[
{
name: "Ubuntu GCC",
cxx: "g++",
cc: "gcc",
packages: "nlohmann-json3-dev libtinyxml2-dev",
os: ubuntu-latest,
},

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

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
,
{
name: "Ubuntu Clang",
cxx: "clang++",
cc: "clang",
packages: "nlohmann-json3-dev libtinyxml2-dev",
os: ubuntu-latest,
}
]
continue-on-error: false
runs-on: ${{ matrix.toolchain.os }}
env:
CC: ${{ matrix.toolchain.cc }}
CXX: ${{ matrix.toolchain.cxx }}
name: "${{ matrix.toolchain.name }}"
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v2
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Install packages (via apt)
if: runner.os == 'Linux'
run: sudo apt install ${{ matrix.toolchain.packages }} -y
- name: Configure
run: cmake -Bbuild -GNinja -DCPPPROPERTIES_BUILD_EXAMPLES=ON -DCPPPROPERTIES_BUILD_TESTS=ON
- name: Build
run: cmake --build build
- name: Run tests
run: ./build/test/tests