This repository has been archived by the owner on Oct 2, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
compile1.cwl
executable file
·79 lines (74 loc) · 1.55 KB
/
compile1.cwl
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
78
79
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
$graph:
- id: compile
class: CommandLineTool
inputs:
src:
type: File
inputBinding: {}
object:
type: string
inputBinding:
prefix: "-o"
outputs:
compiled:
type: File
outputBinding:
glob: $(inputs.object)
baseCommand: gcc
arguments:
- "-c"
- "-Wall"
- id: link
class: CommandLineTool
inputs:
objects:
type: File[]
inputBinding:
position: 2
output:
type: string
inputBinding:
position: 1
prefix: "-o"
outputs:
executable:
type: File
outputBinding:
glob: $(inputs.output)
baseCommand: gcc
- id: main
class: Workflow
requirements:
- class: MultipleInputFeatureRequirement
inputs: []
outputs:
- id: output
type: File
outputSource: linkobj/executable
steps:
compilesources-src1:
run: "#compile"
in:
src:
default:
class: File
location: source1.c
secondaryFiles:
- class: File
location: source1.h
object: { default: "source1.o" }
out: [compiled]
compilesources-src2:
run: "#compile"
in:
src: { default: {class: File, location: "source2.c" } }
object: { default: "source2.o" }
out: [compiled]
linkobj:
run: "#link"
in:
objects: [compilesources-src1/compiled, compilesources-src2/compiled]
output: { default: "a.out" }
out: [executable]