-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitlab-ci.yml
43 lines (40 loc) · 1.1 KB
/
.gitlab-ci.yml
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
stages:
- generate
- run
generate_pipeline:
image: julia:1.10
stage: generate
variables:
CI_GIT_CI_TOOLS_URL: https://github.com/QEDjl-project/QuantumElectrodynamics.jl.git
CI_GIT_CI_TOOLS_BRANCH: dev
CI_ENABLE_CUDA_TESTS: "ON"
CI_ENABLE_AMDGPU_TESTS: "ON"
script:
- apt update && apt install -y git
- git clone --depth 1 -b $CI_GIT_CI_TOOLS_BRANCH $CI_GIT_CI_TOOLS_URL /generator
- julia --project=/generator/.ci/CI -e 'import Pkg; Pkg.instantiate()'
- julia --project=/generator/.ci/CI /generator/.ci/CI/src/Bootloader.jl --output-cpu=cpu_pipeline.yaml --output-gpu=gpu_pipeline.yaml
- cat $CI_PROJECT_DIR/cpu_pipeline.yaml
- cat $CI_PROJECT_DIR/gpu_pipeline.yaml
artifacts:
paths:
- cpu_pipeline.yaml
- gpu_pipeline.yaml
expire_in: 1 week
interruptible: true
tags:
- cpuonly
cpu_tests:
stage: run
trigger:
include:
- artifact: cpu_pipeline.yaml
job: generate_pipeline
strategy: depend
gpu_tests:
stage: run
trigger:
include:
- artifact: gpu_pipeline.yaml
job: generate_pipeline
strategy: depend