Repository navigation
235 lines (225 loc) · 8.14 KB
/
Copy pathnightly.yml
File metadata and controls
235 lines (225 loc) · 8.14 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
name: nightly
on:
schedule:
- cron: "0 14 * * *"
env:
CHANNEL: nightly
jobs:
build-x86_64-unknown-linux-musl-archive-and-deb-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "Build archive and package"
run: |
./scripts/docker-run.sh builder-x86_64-unknown-linux-musl make build-archive package-deb
8000
env:
PASS_FEATURES: "default-musl"
- uses: actions/upload-artifact@v1
with:
name: "vector-x86_64-unknown-linux-musl.tar.gz"
path: "./target/artifacts/vector-x86_64-unknown-linux-musl.tar.gz"
- uses: actions/upload-artifact@v1
with:
name: "vector-amd64.deb"
path: "./target/artifacts/vector-amd64.deb"
build-aarch64-unknown-linux-musl-archive-and-deb-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "Build archive and package"
run: |
./scripts/docker-run.sh builder-aarch64-unknown-linux-musl make build-archive package-deb
env:
DOCKER_PRIVILEGED: "true"
PASS_FEATURES: "default-musl"
- uses: actions/upload-artifact@v1
with:
name: "vector-aarch64-unknown-linux-musl.tar.gz"
path: "./target/artifacts/vector-aarch64-unknown-linux-musl.tar.gz"
- uses: actions/upload-artifact@v1
with:
name: "vector-arm64.deb"
path: "./target/artifacts/vector-arm64.deb"
build-armv7-unknown-linux-musleabihf-archive-and-deb-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "Build archive and package"
run: |
./scripts/docker-run.sh builder-armv7-unknown-linux-musleabihf make build-archive package-deb
env:
DOCKER_PRIVILEGED: "true"
PASS_FEATURES: "default-musl"
- uses: actions/upload-artifact@v1
with:
name: "vector-armv7-unknown-linux-musleabihf.tar.gz"
path: "./target/artifacts/vector-armv7-unknown-linux-musleabihf.tar.gz"
- uses: actions/upload-artifact@v1
with:
name: "vector-armhf.deb"
path: "./target/artifacts/vector-armhf.deb"
build-x86_64-apple-darwin-archive:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: "Build archive"
run: |
export PATH="$HOME/.cargo/bin:$PATH"
make build-archive
env:
TARGET: "x86_64-apple-darwin"
- uses: actions/upload-artifact@v1
with:
name: "vector-x86_64-apple-darwin.tar.gz"
path: "./target/artifacts/vector-x86_64-apple-darwin.tar.gz"
build-x86_64-pc-windows-msvc-archive-and-msi-package:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: "Download Perl"
shell: bash
run: |
curl -sSf http://strawberryperl.com/download/$VERSION/strawberry-perl-$VERSION-64bit.msi > perl-installer.msi
echo "$SHA256SUM perl-installer.msi" | sha256sum --check --status
env:
VERSION: "5.30.0.1"
SHA256SUM: "459de13a284a4c83213208c9caa1c372c81136b6e863a3f13d42f631048e0b12" # we need to verify checksum because strawberryperl.com doesn't support HTTPS
- name: "Install Perl"
shell: cmd # msiexec fails when called from bash
run: |
msiexec /quiet /i perl-installer.msi
del perl-installer.msi
- name: "Download CMake"
shell: bash
run: |
curl -sSfL https://github.com/Kitware/CMake/releases/download/v$VERSION/cmake-$VERSION-win64-x64.msi > cmake-installer.msi
env:
VERSION: "3.15.5"
- name: "Install CMake"
shell: cmd # msiexec fails when called from bash
run: |
msiexec /quiet /i cmake-installer.msi
del cmake-installer.msi
- name: "Install Wix"
shell: bash
run: |
mkdir -p /c/wix
cd /c/wix
curl -sSfL https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip > wix-binaries.zip
unzip wix-binaries.zip
rm wix-binaries.zip
- name: "Build archive"
shell: bash
run: |
export PATH="$HOME/.cargo/bin:/c/Strawberry/perl/bin:/c/Program Files/CMake/bin:$PATH"
export RUSTFLAGS=-Ctarget-feature=+crt-static
export FEATURES="default-msvc"
export ARCHIVE_TYPE="zip"
export STRIP="false"
export RUST_LTO=""
export TARGET="x86_64-pc-windows-msvc"
./scripts/build-archive.sh
ls -lha target/artifacts
- name: "Build package"
shell: bash
run: |
export PATH="/c/wix:$PATH"
./scripts/package-msi.sh
- uses: actions/upload-artifact@v1
with:
name: "vector-x86_64-pc-windows-msvc.zip"
path: "./target/artifacts/vector-x86_64-pc-windows-msvc.zip"
- uses: actions/upload-artifact@v1
with:
name: "vector-x64.msi"
path: "./target/artifacts/vector-x64.msi"
release-docker:
runs-on: ubuntu-latest
needs:
- build-x86_64-unknown-linux-musl-archive-and-deb-package
- build-aarch64-unknown-linux-musl-archive-and-deb-package
- build-armv7-unknown-linux-musleabihf-archive-and-deb-package
steps:
- uses: actions/checkout@v1
- uses: actions/download-artifact@v1
with:
name: vector-x86_64-unknown-linux-musl.tar.gz
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-aarch64-unknown-linux-musl.tar.gz
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-armv7-unknown-linux-musleabihf.tar.gz
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-amd64.deb
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-arm64.deb
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-armhf.deb
path: target/artifacts
- run: |
./scripts/upgrade-docker.sh
export VERSION=$(make version)
make release-docker
env:
DOCKER_USERNAME: '${{ secrets.CI_DOCKER_USERNAME }}'
DOCKER_PASSWORD: '${{ secrets.CI_DOCKER_PASSWORD }}'
PLATFORM: "linux/amd64,linux/arm64,linux/arm"
release-s3:
runs-on: ubuntu-latest
needs:
- build-x86_64-unknown-linux-musl-archive-and-deb-package
- build-aarch64-unknown-linux-musl-archive-and-deb-package
- build-armv7-unknown-linux-musleabihf-archive-and-deb-package
- build-x86_64-apple-darwin-archive
- build-x86_64-pc-windows-msvc-archive-and-msi-package
steps:
- uses: actions/checkout@v1
- uses: actions/download-artifact@v1
with:
name: vector-x86_64-unknown-linux-musl.tar.gz
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-aarch64-unknown-linux-musl.tar.gz
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-armv7-unknown-linux-musleabihf.tar.gz
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-amd64.deb
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-arm64.deb
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-armhf.deb
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-x86_64-apple-darwin.tar.gz
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-x86_64-pc-windows-msvc.zip
path: target/artifacts
- uses: actions/download-artifact@v1
with:
name: vector-x64.msi
path: target/artifacts
- run: make release-s3
env:
AWS_ACCESS_KEY_ID: '${{ secrets.CI_AWS_ACCESS_KEY_ID }}'
AWS_SECRET_ACCESS_KEY: '${{ secrets.CI_AWS_SECRET_ACCESS_KEY }}'