Skip to content

Commit 74fe7d0

Browse files
authored
Merge pull request #115 from KFilipek/task-ci_unify
[CI] Add reusable workflows
2 parents f0d902f + 93e91de commit 74fe7d0

File tree

5 files changed

+65
-8
lines changed

5 files changed

+65
-8
lines changed

.github/workflows/basic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: BasicBuilds
22

3-
on: [push, pull_request, workflow_call]
3+
on: workflow_call
44

55
env:
66
BUILD_DIR : "${{github.workspace}}/build/"

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Benchmarks
22

3-
on: [push, pull_request, workflow_call]
3+
on: workflow_call
44

55
jobs:
66
ubuntu-build:

.github/workflows/codeql.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: CodeQL
22

3-
on: [push, pull_request, workflow_call]
4-
5-
concurrency:
6-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7-
cancel-in-progress: true
3+
on: workflow_call
84

95
jobs:
106
analyze:

.github/workflows/pr_push.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: PR/push
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.head_ref }}-${{ github.workflow }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
FastBuild:
11+
name: Fast build
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest]
15+
include:
16+
- os: ubuntu-latest
17+
nproc: $(nproc)
18+
pool_scalable: 'ON'
19+
jemalloc: 'ON'
20+
- os: windows-latest
21+
nproc: $Env:NUMBER_OF_PROCESSORS
22+
pool_scalable: 'OFF'
23+
jemalloc: 'OFF'
24+
runs-on: ${{matrix.os}}
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
30+
- name: Install apt packages
31+
if: matrix.os == 'ubuntu-latest'
32+
run: |
33+
sudo apt-get update
34+
sudo apt-get install -y cmake libjemalloc-dev libnuma-dev libtbb-dev
35+
36+
- name: Configure CMake
37+
run: >
38+
cmake
39+
-B ${{github.workspace}}/build
40+
-DCMAKE_BUILD_TYPE=Release
41+
-DUMF_FORMAT_CODE_STYLE=OFF
42+
-DUMF_DEVELOPER_MODE=ON
43+
-DUMF_ENABLE_POOL_TRACKING=ON
44+
-DUMF_BUILD_LIBUMF_POOL_SCALABLE=${{matrix.pool_scalable}}
45+
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
46+
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=${{matrix.jemalloc}}
47+
48+
- name: Build
49+
run: >
50+
cmake --build ${{github.workspace}}/build --config Release -j ${{matrix.nproc}}
51+
Spellcheck:
52+
uses: oneapi-src/unified-memory-framework/.github/workflows/spellcheck.yml@main
53+
Build:
54+
needs: [Spellcheck, FastBuild]
55+
uses: oneapi-src/unified-memory-framework/.github/workflows/basic.yml@main
56+
Benchmark:
57+
needs: [Build]
58+
uses: oneapi-src/unified-memory-framework/.github/workflows/benchmarks.yml@main
59+
CodeQL:
60+
needs: [Build]
61+
uses: oneapi-src/unified-memory-framework/.github/workflows/codeql.yml@main

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: SpellCheck
22

3-
on: [push, pull_request, workflow_call]
3+
on: workflow_call
44

55
jobs:
66
build:

0 commit comments

Comments
 (0)