-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.yml
56 lines (52 loc) · 1.12 KB
/
build.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
44
45
46
47
48
49
50
51
52
53
54
55
56
# NeON build file (http://github.com/c4s4/neon)
extends: golang
default: [clean, check, articles]
configuration: '~/.neon/github.yml'
properties:
SWEETOHM: '../sweetohm/content/article'
GO_VERSIONS:
- '1.21.5'
- '1.20.12'
# - '1.19.13'
# - '1.18.10'
# - '1.17.13'
- '1.16.14'
# - '1.15.15'
# - '1.14.15'
# - '1.13.15'
- '1.12.17'
# - '1.11.13'
# - '1.10.8'
# - '1.9.7'
- '1.8.7'
# - '1.7.6'
# - '1.6.4'
# - '1.5.4'
- '1.4.3'
# - '1.3.3'
# - '1.2.2'
# - '1.1.2'
- '1.0.3'
targets:
articles:
doc: Generate articles
steps:
- mkdir: "#{BUILD_DIR}"
- $: ['go', 'run', 'gointerfaces.go']
+: GO_VERSIONS
1>: '={BUILD_DIR}/interfaces.md'
1x: true
- copy: 'go-interfaces*.md'
todir: '={BUILD_DIR}'
- read: '={BUILD_DIR}/interfaces.md'
to: 'interfaces'
- for: 'file'
in: 'find(BUILD_DIR, "go-interfaces*.md")'
do:
- replace: '#{BUILD_DIR}/#{file}'
with:
'INTERFACES': =interfaces
'UPDATE': '={now()[0:10]}'
- copy: 'go-interfaces*.md'
dir: =BUILD_DIR
todir: =SWEETOHM