Skip to content

Commit 2a571b0

Browse files
committed
[CI] Add reusable workflows
This commit converts workflows to reusable workflows. Also, it reduces the number of Actions entries started by a single PR/push.
1 parent d940c5e commit 2a571b0

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
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/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:

.github/workflows/starter.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Workflow starter
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
CodeQL:
7+
uses: oneapi-src/unified-memory-framework/.github/workflows/codeql.yml@main
8+
Spellcheck:
9+
uses: oneapi-src/unified-memory-framework/.github/workflows/spellcheck.yml@main
10+
Build:
11+
needs: [CodeQL, Spellcheck]
12+
uses: oneapi-src/unified-memory-framework/.github/workflows/build.yml@main
13+
Benchmark:
14+
needs: [Build]
15+
uses: oneapi-src/unified-memory-framework/.github/workflows/benchmark.yml@main

0 commit comments

Comments
 (0)