Repository navigation
75 lines (69 loc) · 2.47 KB
/
Copy pathCI.yml
File metadata and controls
75 lines (69 loc) · 2.47 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
name: CI
run-name: "CI ${{ inputs.target }}${{ inputs.pr && format(' #{0}', inputs.pr) || '' }}"
# On a pull request, a label starts its own run through Labels.yml
# (CTActions docs/workflows/label-dispatch.md).
on:
push:
branches:
- main
tags: '*'
workflow_dispatch:
inputs:
pr:
description: 'Pull request number, set by label-dispatch.yml'
required: false
default: ''
target:
description: 'github, occidata or kkt'
required: false
default: ''
jobs:
# Job for GitHub-hosted runners (ubuntu, macos, windows)
test-cpu-github:
if: github.event_name == 'push' || inputs.target == 'github'
uses: control-toolbox/CTActions/.github/workflows/ci.yml@main
with:
runs_on: '["ubuntu-latest", "macos-latest", "windows-latest"]'
runner_type: 'github'
use_ct_registry: true
secrets:
SSH_KEY: ${{ secrets.SSH_KEY }}
# Job for the self-hosted occidata runner (GPU/CUDA). Runs CTDirect's GPU-specific test
# suite (test/test_gpu.jl, selected via test_args=GPU — see test/runtests.jl), not
# the plain suite: replaces the former dedicated GPU.yml workflow. Replaces the retired
# kkt runner (cf. CTParser.jl, CTFlows.jl).
test-gpu-occidata:
if: inputs.target == 'occidata'
uses: control-toolbox/CTActions/.github/workflows/ci.yml@main
with:
versions: '["1"]'
runs_on: '[["occidata"]]'
runner_type: 'self-hosted'
use_ct_registry: true
test_args: 'GPU'
secrets:
SSH_KEY: ${{ secrets.SSH_KEY }}
# Job for the self-hosted kkt runner (GPU/CUDA), on its label only (a pull request can
# always ask for either GPU runner; a push picks one, see test-gpu-main).
test-gpu-kkt:
if: inputs.target == 'kkt'
uses: control-toolbox/CTActions/.github/workflows/ci.yml@main
with:
runs_on: '[["kkt"]]'
runner_type: 'self-hosted'
use_ct_registry: true
test_args: 'GPU'
secrets:
SSH_KEY: ${{ secrets.SSH_KEY }}
# On a push (main, tags): a single GPU run, on kkt unless it is offline, else occidata
# (CTActions ci-gpu.yml). A busy kkt is waited for.
test-gpu-main:
if: github.event_name == 'push'
uses: control-toolbox/CTActions/.github/workflows/ci-gpu.yml@main
with:
use_ct_registry: true
test_args: 'GPU'
secrets:
SSH_KEY: ${{ secrets.SSH_KEY }}
CT_RUNNERS_CLIENT_ID: ${{ secrets.CT_RUNNERS_CLIENT_ID }}
CT_RUNNERS_PRIVATE_KEY: ${{ secrets.CT_RUNNERS_PRIVATE_KEY }}