Skip to content

Commit d741ab3

Browse files
[CI] Rename sub-workflows with "reusable_" prefix
1 parent 4dab796 commit d741ab3

15 files changed

+92
-73
lines changed

.github/workflows/pr_push.yml

Lines changed: 15 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Checks required for a PR to merge. This workflow mostly call other workflows.
1+
# Run checks required for a PR to merge and verify if post-merge commit is valid.
2+
# This workflow only call other workflows.
23
name: PR/push
34

45
on:
@@ -16,100 +17,43 @@ permissions:
1617

1718
jobs:
1819
CodeStyle:
19-
name: Coding style
20-
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
21-
22-
steps:
23-
- name: Checkout repository
24-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25-
with:
26-
fetch-depth: 0
27-
28-
- name: Install apt packages
29-
run: |
30-
sudo apt-get update
31-
sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev
32-
33-
- name: Configure CMake
34-
run: >
35-
cmake
36-
-B ${{github.workspace}}/build
37-
-DUMF_FORMAT_CODE_STYLE=ON
38-
-DUMF_BUILD_TESTS=OFF
39-
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
40-
-DUMF_BUILD_CUDA_PROVIDER=OFF
41-
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
42-
43-
- name: Check C/C++ formatting
44-
run: cmake --build build --target clang-format-check
45-
46-
- name: Check CMake formatting
47-
run: |
48-
cmake --build build --target cmake-format-apply
49-
git diff --exit-code
50-
51-
- name: Check Python formatting
52-
run: cmake --build build --target black-format-check
53-
20+
uses: ./.github/workflows/reusable_code_style.yml
5421
DocsBuild:
55-
name: Build docs
56-
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
57-
58-
steps:
59-
- name: Checkout repository
60-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
61-
with:
62-
fetch-depth: 0
63-
64-
- name: Install doxygen
65-
run: |
66-
sudo apt-get update
67-
sudo apt-get install -y doxygen
68-
69-
- name: Install pip requirements
70-
run: python3 -m pip install -r third_party/requirements.txt
71-
72-
- name: Setup PATH for python
73-
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
74-
75-
- name: Build the documentation
76-
working-directory: scripts
77-
run: python3 generate_docs.py
78-
22+
uses: ./.github/workflows/reusable_docs_build.yml
7923
Spellcheck:
80-
uses: ./.github/workflows/spellcheck.yml
24+
uses: ./.github/workflows/reusable_spellcheck.yml
8125
FastBuild:
8226
name: Fast builds
8327
needs: [Spellcheck, CodeStyle]
84-
uses: ./.github/workflows/fast.yml
28+
uses: ./.github/workflows/reusable_fast.yml
8529
Build:
8630
name: Basic builds
8731
needs: [FastBuild]
88-
uses: ./.github/workflows/basic.yml
32+
uses: ./.github/workflows/reusable_basic.yml
8933
DevDax:
9034
needs: [FastBuild]
91-
uses: ./.github/workflows/dax.yml
35+
uses: ./.github/workflows/reusable_dax.yml
9236
Sanitizers:
9337
needs: [FastBuild]
94-
uses: ./.github/workflows/sanitizers.yml
38+
uses: ./.github/workflows/reusable_sanitizers.yml
9539
Qemu:
9640
needs: [FastBuild]
97-
uses: ./.github/workflows/qemu.yml
41+
uses: ./.github/workflows/reusable_qemu.yml
9842
Benchmarks:
9943
needs: [Build]
100-
uses: ./.github/workflows/benchmarks.yml
44+
uses: ./.github/workflows/reusable_benchmarks.yml
10145
ProxyLib:
10246
needs: [Build]
103-
uses: ./.github/workflows/proxy_lib.yml
47+
uses: ./.github/workflows/reusable_proxy_lib.yml
10448
GPU:
10549
needs: [Build]
106-
uses: ./.github/workflows/gpu.yml
50+
uses: ./.github/workflows/reusable_gpu.yml
10751
Valgrind:
10852
needs: [Build]
109-
uses: ./.github/workflows/valgrind.yml
53+
uses: ./.github/workflows/reusable_valgrind.yml
11054
MultiNuma:
11155
needs: [Build]
112-
uses: ./.github/workflows/multi_numa.yml
56+
uses: ./.github/workflows/reusable_multi_numa.yml
11357
Coverage:
11458
needs: [Build, DevDax, GPU, MultiNuma, Qemu, ProxyLib]
11559
uses: ./.github/workflows/coverage.yml
File renamed without changes.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Code Style
2+
3+
on: workflow_call
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
CodeStyle:
10+
name: Coding style
11+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install apt packages
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev
23+
24+
- name: Configure CMake
25+
run: >
26+
cmake
27+
-B ${{github.workspace}}/build
28+
-DUMF_FORMAT_CODE_STYLE=ON
29+
-DUMF_BUILD_TESTS=OFF
30+
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
31+
-DUMF_BUILD_CUDA_PROVIDER=OFF
32+
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
33+
34+
- name: Check C/C++ formatting
35+
run: cmake --build build --target clang-format-check
36+
37+
- name: Check CMake formatting
38+
run: |
39+
cmake --build build --target cmake-format-apply
40+
git diff --exit-code
41+
42+
- name: Check Python formatting
43+
run: cmake --build build --target black-format-check

.github/workflows/coverage.yml renamed to .github/workflows/reusable_coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Coverage build
1+
# Coverage build - gather artifacts from other builds and merge it into a single report
22
name: Coverage
33

44
on: workflow_call
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222

23-
- name: Install dependencies (ubuntu-latest)
23+
- name: Install dependencies
2424
run: |
2525
sudo apt-get update
2626
sudo apt-get install -y lcov
File renamed without changes.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Docs build
2+
3+
on: workflow_call
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
DocsBuild:
10+
name: Docs build
11+
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install doxygen
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y doxygen
23+
24+
- name: Install pip requirements
25+
run: python3 -m pip install -r third_party/requirements.txt
26+
27+
- name: Setup PATH for python
28+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
29+
30+
- name: Build the documentation
31+
working-directory: scripts
32+
run: python3 generate_docs.py
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)