forked from STEllAR-GROUP/hpx
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.22 KB
/
check-circular-deps.yml
File metadata and controls
42 lines (37 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright (c) 2026 The STE||AR Group
#
# SPDX-License-Identifier: BSL-1.0
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
name: Check Circular Dependencies
on:
pull_request:
push:
branches:
- master
- 'release**'
workflow_dispatch:
jobs:
check-circular-deps:
runs-on: ubuntu-latest
container: stellargroup/build_env:17
steps:
- uses: actions/checkout@v6
- name: Check circular dependencies
shell: bash
run: |
# Ignore compatibility headers (the last cut -c3- is to remove a
# leading ./ in path names)
cpp-dependencies \
--dir libs \
--ignore $(find libs -type d -wholename '*/include_compatibility' | cut -d'/' -f2-) \
--graph-cycles /tmp/circular_deps.dot
dot /tmp/circular_deps.dot -Tsvg -o /tmp/circular_deps.svg
if [[ $(wc -l /tmp/circular_deps.dot | awk '{print $1}') -gt 2 ]]; then exit 1; fi
- name: Upload Circular Dependency Graph
uses: actions/upload-artifact@v7
with:
name: circular-deps
path: |
/tmp/circular_deps.dot
/tmp/circular_deps.svg