Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 45 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,56 @@ on:
push:
branches: [main]
jobs:
debug:
runs-on: ubuntu-latest
strategy:
matrix:
package: [error]
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Install cmake-format
run: pip3 install cmake-format

- name: Configure CMake
run: |
cmake ${{ matrix.package }} \
-B ${{ matrix.package }}/build \
-D CMAKE_CXX_FLAGS=-Werror \
-D BUILD_TESTING=ON

- name: Check code formatting
run: |
cmake --build ${{ matrix.package }}/build --target fix-format
git diff --exit-code HEAD

- name: Build project
run: cmake --build ${{ matrix.package }}/build

- name: Run unit tests
run: ctest --test-dir ${{ matrix.package }}/build --output-on-failure --no-tests=error

- name: Check code coverage
uses: threeal/gcovr-action@main
with:
root: ${{ matrix.package }}
excludes: |
${{ matrix.package }}/build/*
${{ matrix.package }}/test/*
fail-under-line: 100

release:
runs-on: ubuntu-latest
strategy:
matrix:
package: [error]
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Configure and build this project
- name: Configure and build project
uses: threeal/[email protected]
with:
source-dir: error
build-dir: error/build
source-dir: ${{ matrix.package }}
build-dir: ${{ matrix.package }}/build
60 changes: 0 additions & 60 deletions .github/workflows/test.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Overview

[![build status](https://img.shields.io/github/actions/workflow/status/threeal/cpp/build.yml?branch=main)](https://github.com/threeal/cpp/actions/workflows/build.yml)
[![test status](https://img.shields.io/github/actions/workflow/status/threeal/cpp/test.yml?label=test&branch=main)](https://github.com/threeal/cpp/actions/workflows/test.yml)

A comprehensive collection of [C++](https://isocpp.org/) utility packages.

Expand Down