8
8
9
9
10
10
steps :
11
- - label : Check for new Octez release
12
- if : build.source == "schedule" && build.branch == "master"
13
- commands :
14
- - nix develop .#autorelease -c ./scripts/update-tezos.sh
15
-
16
- - label : Build ubuntu source packages
17
- key : build-ubuntu-source-packages
18
- if : build.tag =~ /^v.*-1/
19
- agents :
20
- queue : " docker"
21
- commands :
22
- - eval "$SET_VERSION"
23
- - nix develop .#docker-tezos-packages -c ./docker/build/ubuntu/build.py --type source
24
- artifact_paths :
25
- - ./out/*
26
-
27
- - label : Build fedora source packages
28
- key : build-fedora-source-packages
29
- if : build.tag =~ /^v.*-1/
30
- agents :
31
- queue : " docker"
32
- commands :
33
- - eval "$SET_VERSION"
34
- - nix develop .#docker-tezos-packages -c ./docker/build/fedora/build.py --type source
35
- artifact_paths :
36
- - ./out/*
37
-
38
- - label : Sign ubuntu source packages
39
- if : build.tag =~ /^v.*-1/
40
- depends_on :
41
- - " build-ubuntu-source-packages"
42
- key : sign-ubuntu-source-packages
43
- commands :
44
- - eval "$SET_VERSION"
45
- - buildkite-agent artifact download "out/*" . --step build-ubuntu-source-packages
46
- -
nix develop .#docker-tezos-packages -c ./docker/build/ubuntu/sign.py -d out -i 'Serokell <[email protected] >'
47
- artifact_paths :
48
- - ./out/*
49
-
50
- - label : Sign fedora source packages
51
- if : build.tag =~ /^v.*-1/
52
- depends_on :
53
- - " build-fedora-source-packages"
54
- key : sign-fedora-source-packages
55
- commands :
56
- - eval "$SET_VERSION"
57
- - buildkite-agent artifact download "out/*" . --step build-fedora-source-packages
58
- -
nix develop .#docker-tezos-packages -c ./docker/build/fedora/sign.py -d out -i 'Serokell <[email protected] >'
59
- artifact_paths :
60
- - ./out/*
61
-
62
- - label : Publish ubuntu native packages
63
- if : build.tag =~ /^v.*-1/
64
- depends_on :
65
- - " sign-ubuntu-source-packages"
66
- commands :
67
- - eval "$SET_VERSION"
68
- - buildkite-agent artifact download "out/*" . --step sign-ubuntu-source-packages
69
- - nix develop .#buildkite -c ./docker/build/ubuntu/upload.py -d out
70
-
71
- - label : Publish fedora native packages
72
- if : build.tag =~ /^v.*-1/
73
- depends_on :
74
- - " sign-fedora-source-packages"
75
- commands :
76
- - eval "$SET_VERSION"
77
- - buildkite-agent artifact download "out/*" . --step sign-fedora-source-packages
78
- - nix develop .#buildkite -c ./docker/build/fedora/upload.py -d out
79
-
80
11
- label : build-via-docker
81
- if : build.tag =~ /^v.*-1/
12
+ # this step is used as a dependency, so we're defining 'key' explicitely
82
13
key : build-via-docker
14
+ if : build.tag == "test-695"
83
15
commands :
84
16
- eval "$SET_VERSION"
85
17
- cd docker
@@ -89,46 +21,42 @@ steps:
89
21
agents :
90
22
queue : " docker"
91
23
92
- - label : Build source packages from static binaries
93
- key : build-source-packages-from-static-binaries
94
- if : build.tag =~ /^v.*-1/
95
- agents :
96
- queue : " docker"
97
- depends_on :
98
- - " build-via-docker"
24
+ - label : build-arm-via-docker
25
+ # this step is used as a dependency, so we're defining 'key' explicitely
26
+ key : build-arm-via-docker
27
+ if : build.tag == "test-695"
99
28
commands :
100
29
- eval "$SET_VERSION"
101
- - mkdir binaries
102
- - buildkite-agent artifact download "docker/*" binaries --step build-via-docker
103
- - nix develop .#docker-tezos-packages -c ./docker/build/fedora/build.py --type source --output-dir epel --binaries-dir ./binaries/docker
30
+ - cd docker
31
+ - ./docker-static-build.sh
32
+ - >
33
+ for f in ./octez-*; do
34
+ mv "\$f" "\$f-arm64"
35
+ done
104
36
artifact_paths :
105
- - ./epel/*
37
+ - ./docker/octez-*
38
+ agents :
39
+ queue : " arm64-darwin"
106
40
107
- - label : Sign source packages built from static binaries
108
- key : sign-source-packages-built-from-static-binaries
109
- if : build.tag =~ /^v.*-1/
110
- depends_on :
111
- - " build-source-packages-from-static-binaries"
41
+ - label : create auto release/pre-release
42
+ key : auto-release
43
+ if : build.tag == "test-695"
112
44
commands :
113
- - eval "$SET_VERSION"
114
- - buildkite-agent artifact download "epel/*" . --step build-source-packages-from-static-binaries
115
- -
nix develop .#docker-tezos-packages -c ./docker/build/fedora/sign.py -d epel -i 'Serokell <[email protected] >'
116
- artifact_paths :
117
- - ./epel/*
118
-
119
- - label : Publish epel packages
120
- if : build.tag =~ /^v.*-1/
45
+ - mkdir binaries
46
+ - mkdir arm-binaries
47
+ - buildkite-agent artifact download "docker/*" binaries --step "build-via-docker"
48
+ - buildkite-agent artifact download "docker/*" arm-binaries --step "build-arm-via-docker"
49
+ - ls binaries
50
+ - nix develop .#autorelease -c ./scripts/autorelease.sh "$BUILDKITE_MESSAGE"
121
51
depends_on :
122
- - " sign-source-packages-built-from-static-binaries"
123
- commands :
124
- - eval "$SET_VERSION"
125
- - mkdir -p srcs
126
- - buildkite-agent artifact download "epel/*" srcs --step sign-source-packages-built-from-static-binaries
127
- - nix develop .#buildkite -c ./docker/build/fedora/upload.py -d srcs/epel --upload epel
52
+ - " build-via-docker"
53
+ - " build-arm-via-docker"
128
54
129
55
- label : Build Big Sur x86_64 bottles
130
56
key : build-bottles-big-sur-x86_64
131
- if : build.tag =~ /^v.*/
57
+ if : build.tag == "test-695"
58
+ depends_on :
59
+ - " auto-release"
132
60
agents :
133
61
queue : " x86_64-rosetta-darwin"
134
62
commands :
@@ -141,7 +69,9 @@ steps:
141
69
142
70
- label : Build Big Sur arm64 bottles
143
71
key : build-bottles-big-sur-arm64
144
- if : build.tag =~ /^v.*/
72
+ if : build.tag == "test-695"
73
+ depends_on :
74
+ - " auto-release"
145
75
agents :
146
76
queue : " arm64-darwin"
147
77
commands :
@@ -152,15 +82,23 @@ steps:
152
82
automatic :
153
83
limit : 1
154
84
155
- # We use the tag that triggered the pipeline here. Normally, this isn't very resilient,
156
- # but in 'scripts/sync-bottle-hashes.sh' it's only used for informational purposes
157
85
- label : Add Big Sur bottle hashes to formulae
86
+ key : list-bottles
158
87
depends_on :
159
88
- " build-bottles-big-sur-arm64"
160
89
- " build-bottles-big-sur-x86_64"
161
- if : build.tag =~ /^v.*/
90
+ if : build.tag == "test-695"
162
91
soft_fail : true # No artifacts to download if all the bottles are already built
163
92
commands :
164
93
- mkdir -p "Big Sur"
165
94
- gh release download build.tag -D "Big Sur/" -p "*.bottle.tar.gz"
166
- - nix develop .#autorelease -c ./scripts/sync-bottle-hashes.sh "$BUILDKITE_TAG" "Big Sur"
95
+ - ls "Big Sur"
96
+
97
+ - label : delete test-release pre-release
98
+ commands :
99
+ - nix develop .#autorelease -c ./scripts/del-test-release.sh "$BUILDKITE_MESSAGE"
100
+ if : build.tag == "test-695"
101
+ depends_on :
102
+ - " build-bottles-big-sur-x86_64"
103
+ - " build-bottles-big-sur-arm64"
104
+ - " list-bottles"
0 commit comments