/
.build.yml
89 lines (82 loc) · 1.64 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
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
# pipeline for testing on ARM64
kind: pipeline
type: docker
name: Test on Linux (ARM64)
platform:
os: linux
arch: arm64
trigger:
event:
- push
steps:
- name: Test
image: rust
commands:
- apt-get update && apt-get install libhtml-parser-perl zip -y
- make test
- >
zip -j aarch64-unknown-linux-gnu-builds.zip
target/debug/skyd target/debug/skysh target/debug/sky-bench
- name: Upload artifacts
image: plugins/s3
settings:
access_key:
from_secret: s3_access_key
secret_key:
from_secret: s3_secret_key
bucket: everycommit
source: aarch64-unknown-linux-gnu-builds.zip
target: ${DRONE_COMMIT}
path_style: true
endpoint:
from_secret: storage_s3_url
---
# pipeline for building release packages
kind: pipeline
type: docker
name: Release
platform:
os: linux
arch: arm64
trigger:
event:
- tag
steps:
- name: Package release
image: rust
environment:
ARTIFACT: aarch64-linux-gnu
VERSION: ${DRONE_TAG}
commands:
- apt-get update && apt-get install zip -y
- make bundle
- make deb
when:
event:
- tag
- name: Upload packages
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- "*.deb"
- "*.zip"
when:
event:
- tag
---
# pipeline for testing on Linux x86_64
kind: pipeline
type: docker
name: Test on Linux (x86_64)
trigger:
event:
exclude:
- tag
steps:
- name: Test
image: rust
commands:
- apt update && apt-get install libhtml-parser-perl -y
- make test