Skip to content

Commit

Permalink
Add Fedora CI (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd authored Feb 28, 2025
1 parent e37004f commit 73c463d
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 2 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Fedora

on:
push:
branches:
- master
paths-ignore:
- '**.md'
- 'docs/**'
- 'scripts/**'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
- 'docs/**'
- 'scripts/**'

jobs:
build:
runs-on: ubuntu-latest
container: fedora:40
strategy:
fail-fast: false
matrix:
cxx: [g++]
build_type: [Debug, Release]
std: [23]
with_tests: [ON]

include:
- cxx: g++
install: |
dnf --setopt=retries=5 update -y
dnf --setopt=retries=5 install -y gcc-c++ cmake make
steps:
- uses: actions/checkout@v4

- name: Install dependencies and create build environment
run: |
${{ matrix.install }}
mkdir -p ${{runner.workspace}}/build
ls -l ${{runner.workspace}}
- name: Configure
env:
CXX: ${{matrix.cxx}}
CXXFLAGS: ${{matrix.cxxflags}}
run: |
cd ${{runner.workspace}}/build
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{matrix.cmake_options}} \
-DCMAKE_CXX_STANDARD=${{matrix.std}} -DQUILL_BUILD_TESTS=${{matrix.with_tests}} \
-DQUILL_BUILD_EXAMPLES=ON -DQUILL_VERBOSE_MAKEFILE=ON $GITHUB_WORKSPACE
- name: Build
run: |
cd ${{runner.workspace}}/build
cmake --build . --config ${{ matrix.build_type }} --parallel $(nproc)
- name: Test
run: |
cd ${{runner.workspace}}/build
ctest --build-config ${{ matrix.build_type }} ${{ matrix.ctest_options }} --parallel $(nproc) --output-on-failure
env:
CTEST_OUTPUT_ON_FAILURE: True
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
std: 17
os: ubuntu-22.04
with_tests: OFF
cmake_options: -DQUILL_NO_EXCEPTIONS=ON -DQUILL_BUILD_TESTS=ON
cmake_options: -DQUILL_NO_EXCEPTIONS=ON

# Build and test with valgrind
- cxx: g++-10
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
<p><b>Asynchronous Low Latency C++ Logging Library</b></p>

<div>
<a href="https://github.com/odygrd/quill/actions?query=workflow%3Afedora">
<img src="https://img.shields.io/github/actions/workflow/status/odygrd/quill/fedora.yml?branch=master&label=Fedora&style=flat-square&logo=fedora" alt="fedora-ci" />
</a>
<a href="https://github.com/odygrd/quill/actions?query=workflow%3Aubuntu">
<img src="https://img.shields.io/github/actions/workflow/status/odygrd/quill/ubuntu.yml?branch=master&label=Linux&style=flat-square&logo=linux" alt="linux-ci" />
<img src="https://img.shields.io/github/actions/workflow/status/odygrd/quill/ubuntu.yml?branch=master&label=Ubuntu&style=flat-square&logo=ubuntu" alt="ubuntu-ci" />
</a>
<a href="https://github.com/odygrd/quill/actions?query=workflow%3Absd">
<img src="https://img.shields.io/github/actions/workflow/status/odygrd/quill/bsd.yml?branch=master&label=BSD&style=flat-square&logo=openbsd" alt="bsd-ci" />
Expand Down

0 comments on commit 73c463d

Please sign in to comment.