Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Rewrite CI

Rewrite CI #4

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Continuous Integration Tests
on:
push:
branches: [ main ]
paths:
- "src/**"
- "test/**"
- "CMakeLists.txt"
pull_request:
branches: [ main ]
paths:
- "src/**"
- "test/**"
- "CMakeLists.txt"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- "gcc:13"
- "clang:16"
build_type: [Debug, Release]
runs-on: ubuntu-latest

Check failure on line 33 in .github/workflows/ci_tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci_tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 33
container:
image: ghcr.io/foonathan/${{matrix.image}}
steps:
- uses: actions/checkout@v4
- name: Create Build Environment
run: cmake -E make_directory build
- name: Configure
working-directory: build/
run: cmake -GNinja $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra"
- name: Build
working-directory: build/
run: cmake --build .
- name: Test
working-directory: build/
run: ctest --output-on-failure