Skip to content

Commit 58a759b

Browse files
[CI] Rename sub-workflows with "reusable_" prefix
1 parent 9fc6aa3 commit 58a759b

14 files changed

+88
-70
lines changed

.github/workflows/pr_push.yml

Lines changed: 13 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -16,97 +16,40 @@ permissions:
1616

1717
jobs:
1818
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-
19+
uses: ./.github/workflows/reusable_code_style.yml
5420
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-
21+
uses: ./.github/workflows/reusable_docs_build.yml
7922
Spellcheck:
80-
uses: ./.github/workflows/spellcheck.yml
23+
uses: ./.github/workflows/reusable_spellcheck.yml
8124
FastBuild:
8225
name: Fast builds
8326
needs: [Spellcheck, CodeStyle]
84-
uses: ./.github/workflows/fast.yml
27+
uses: ./.github/workflows/reusable_fast.yml
8528
Build:
8629
name: Basic builds
8730
needs: [FastBuild]
88-
uses: ./.github/workflows/basic.yml
31+
uses: ./.github/workflows/reusable_basic.yml
8932
DevDax:
9033
needs: [FastBuild]
91-
uses: ./.github/workflows/dax.yml
34+
uses: ./.github/workflows/reusable_dax.yml
9235
Sanitizers:
9336
needs: [FastBuild]
94-
uses: ./.github/workflows/sanitizers.yml
37+
uses: ./.github/workflows/reusable_sanitizers.yml
9538
Qemu:
9639
needs: [FastBuild]
97-
uses: ./.github/workflows/qemu.yml
40+
uses: ./.github/workflows/reusable_qemu.yml
9841
Benchmarks:
9942
needs: [Build]
100-
uses: ./.github/workflows/benchmarks.yml
43+
uses: ./.github/workflows/reusable_benchmarks.yml
10144
ProxyLib:
10245
needs: [Build]
103-
uses: ./.github/workflows/proxy_lib.yml
46+
uses: ./.github/workflows/reusable_proxy_lib.yml
10447
GPU:
10548
needs: [Build]
106-
uses: ./.github/workflows/gpu.yml
49+
uses: ./.github/workflows/reusable_gpu.yml
10750
Valgrind:
10851
needs: [Build]
109-
uses: ./.github/workflows/valgrind.yml
52+
uses: ./.github/workflows/reusable_valgrind.yml
11053
MultiNuma:
11154
needs: [Build]
112-
uses: ./.github/workflows/multi_numa.yml
55+
uses: ./.github/workflows/reusable_multi_numa.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
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)