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
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: build

on:
pull_request:
branches:
- main
push:
branches:
- main
- 'feature/*'
- 'bugfix/*'
- 'release/*'
paths:
- 'cmake/**'
- 'CMakeLists.txt'
- '*.cpp'
- '*.hpp'
- '*.ipp'

jobs:
build-linux:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
# This is meant to run at 13:17 on 11th of every month
- cron: '17 13 11 * *'
push:
branch:
- main
paths:
- 'ci/**'
workflow_dispatch:

# Based on https://docs.docker.com/build/ci/github-actions/multi-platform/
Expand Down
30 changes: 12 additions & 18 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
name: clang-format

on: [push, pull_request]
on:
push:
paths:
- '.clang-format'
- '*.cpp'
- '*.hpp'
- '*.ipp'

jobs:
format-check:
runs-on: ubuntu-22.04
env:
CLANG_VERSION: 18
runs-on:
group: default
strategy:
fail-fast: false
container: libfn/ci-build-clang:18
steps:
- uses: actions/checkout@v4

- name: Install clang-format
env:
DEBIAN_FRONTEND: noninteractive
run: |
CODENAME=$( . /etc/os-release && echo $VERSION_CODENAME )
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/llvm.gpg
printf "%s\n%s\n" \
"deb [signed-by=/etc/apt/keyrings/llvm.gpg] https://apt.llvm.org/$CODENAME/ llvm-toolchain-$CODENAME-${CLANG_VERSION} main" \
"deb-src [signed-by=/etc/apt/keyrings/llvm.gpg] https://apt.llvm.org/$CODENAME/ llvm-toolchain-$CODENAME-${CLANG_VERSION} main" \
| sudo tee /etc/apt/sources.list.d/llvm.list
sudo apt-get update
sudo apt-get install -t llvm-toolchain-${CODENAME}-${CLANG_VERSION} -y --no-install-recommends clang-format-${CLANG_VERSION}
sudo apt-get clean

- name: Format source files
run: find include tests -type f \( -name '*.cpp' -o -name '*.hpp' -o -name '*.ipp' \) -print0 | xargs -0 clang-format-${CLANG_VERSION} -i

Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
name: coverage

on:
pull_request:
branches:
- main
push:
branches:
- main
- 'feature/*'
- 'bugfix/*'
- 'release/*'
workflow_dispatch:
paths:
- '.codecov.yml'
- 'cmake/**'
- 'CMakeLists.txt'
- '*.cpp'
- '*.hpp'
- '*.ipp'

jobs:
coverage:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ name: license

on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- '.fossa.yml'
- 'LICENSE*'
- 'cmake/**'
- 'CMakeLists.txt'
- '*.cpp'
- '*.hpp'
- '*.ipp'

jobs:
license-check:
Expand Down