-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
77 lines (69 loc) · 1.71 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
77 lines (69 loc) · 1.71 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# SPDX-License-Identifier: MPL-2.0
# stage description
# generate
# creates the actual test jobs via python script
# run-tests
# execute the generated test jobs
# the ordering is mainly random
# the python generator can schedule some jobs on specific positions
stages:
- generator
- run-test-jobs
variables:
# container version of the generated jobs
ALPAKA_GITLAB_CI_GENERATOR_CONTAINER_VERSION: "4.1"
generate:
stage: generator
# update alpine version to use newer python version
image: python:3.14-alpine
script:
- pip3 install script/job_generator
- job-generator ${ALPAKA_GITLAB_CI_GENERATOR_CONTAINER_VERSION}
--split-pipeline
--pipeline-out-compile_only compile_only.yml
--pipeline-out-runtime_job_cpu runtime_cpu.yml
--pipeline-out-runtime_job_gpu runtime_gpu.yml
--pipeline-out-special_job special.yml
- cat compile_only.yml
- cat runtime_cpu.yml
- cat runtime_gpu.yml
- cat special.yml
artifacts:
paths:
- compile_only.yml
- runtime_cpu.yml
- runtime_gpu.yml
- special.yml
expire_in: 1 week
interruptible: true
tags:
- x86_64
- cpuonly
run-compile-only-test:
stage: run-test-jobs
trigger:
include:
- artifact: compile_only.yml
job: generate
strategy: depend
run-runtime-cpu-test:
stage: run-test-jobs
trigger:
include:
- artifact: runtime_cpu.yml
job: generate
strategy: depend
run-runtime-gpu-test:
stage: run-test-jobs
trigger:
include:
- artifact: runtime_gpu.yml
job: generate
strategy: depend
run-special-test:
stage: run-test-jobs
trigger:
include:
- artifact: special.yml
job: generate
strategy: depend