-
-
Notifications
You must be signed in to change notification settings - Fork 543
48 lines (41 loc) · 1.48 KB
/
check-module-cmakelists.yml
File metadata and controls
48 lines (41 loc) · 1.48 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
43
44
45
46
47
48
# 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 Modules CMakeLists
on:
pull_request:
push:
branches:
- master
- 'release**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check-module-cmakelists:
runs-on: ubuntu-latest
container: stellargroup/build_env:17
steps:
- uses: actions/checkout@v6
- name: Check if the headers of the modules are listed in their CMakeLists.txt
shell: bash
run: |
./tools/check_module_cmakelists.sh
if [[ $(wc -l /tmp/missing_files.txt | awk '{print $1}') -gt 1 ]] \
|| [[ $(wc -l /tmp/missing_deps.txt | awk '{print $1}') -gt 1 ]]; \
then exit 1; fi
- name: Upload Missing Files Artifacts
if: success() || failure()
uses: actions/upload-artifact@v7
with:
name: missing_files.txt
path: /tmp/missing_files.txt
- name: Upload Missing Deps Artifacts
if: success() || failure()
uses: actions/upload-artifact@v7
with:
name: missing_deps.txt
path: /tmp/missing_deps.txt