forked from prusa3d/Prusa-Firmware
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.drone.yml
168 lines (157 loc) · 6.34 KB
/
.drone.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
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
kind: pipeline
name: default
workspace:
path: Prusa-Firmware
steps:
- name: enviornment
image: vertigo235/fw-build:1
commands:
- printenv
when:
event:
- push
- tag
- pull_request
- name: tests
image: vertigo235/fw-build:1
commands:
- bash -x test.sh
when:
event:
- push
- tag
- pull_request
- name: build
image: vertigo235/fw-build:1
environment:
BUILD_TYPE: GOLD
commands:
- pwd
- chmod +x PF-build.sh
- chmod +x lang/config.sh
- chmod +x lang/fw-clean.sh
- chmod +x lang/lang-clean.sh
- sed -i -e 's/#define FW_COMMIT_NR [0-9]*/#define FW_COMMIT_NR '"$DRONE_BUILD_STARTED"'/' Firmware/Configuration.h
- bash -x PF-build.sh 1_75mm_MK3S-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-BEAR-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-BEAR-SilverPSU-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-Bondtech-16-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-Bondtech-16-SliceHT-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-Bondtech-16-SilverPSU-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-Bondtech-16-SliceHT-SilverPSU-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-Bondtech-Mosquito-16-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-Bondtech-MosquitoMagnum-16-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-Bondtech-Mosquito-16-SliceHT-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-Bondtech-MosquitoMagnum-16-SliceHT-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-320Z-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-Bondtech-320Z-16-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3S-BEAR-320Z-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3-Bondtech-16-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3-BEAR-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3-320Z-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK3-Bondtech-320Z-16-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25S-RAMBo13a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25S-RAMBo10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25S-BEAR-RAMBo13a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25S-BEAR-RAMBo10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25S-Bondtech-16-RAMBo10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25S-Bondtech-16-SliceHT-RAMBo10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25S-Bondtech-16-RAMBo13a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25S-Bondtech-16-SliceHT-RAMBo13a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25-RAMBo13a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25-RAMBo10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25-BEAR-RAMBo13a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25-BEAR-RAMBo10a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25-Bondtech-16-RAMBo13a-E3Dv6full.h ALL $BUILD_TYPE
- bash -x PF-build.sh 1_75mm_MK25-Bondtech-16-RAMBo10a-E3Dv6full.h ALL $BUILD_TYPE
## Make without LA 1.0 Compatibility Mode
- sed -i -e 's/\\/\\/#define LA_NOCOMPAT/#define LA_NOCOMPAT/' Firmware/Configuration_adv.h
- cp $DRONE_WORKSPACE_BASE/Prusa-Firmware/Firmware/variants/1_75mm_MK3S-BEAR-SilverPSU-EINSy10a-E3Dv6full.h $DRONE_WORKSPACE_BASE/Prusa-Firmware/Firmware/variants/1_75mm_MK3S-BEAR-SilverPSU-xLACompat-EINSy10a-E3Dv6full.h
- bash -x PF-build.sh 1_75mm_MK3S-BEAR-SilverPSU-xLACompat-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
when:
event:
- push
- tag
- pull_request
- name: skele-build
image: vertigo235/fw-build:1
environment:
BUILD_TYPE: GOLD
commands:
- git reset --hard
- cd $DRONE_WORKSPACE_BASE
- wget https://raw.githubusercontent.com/nato2k/Skelestruder_Firmware_Patch/master/skele_patch.py
- python skele_patch.py 490 16
- cp ./Prusa-Firmware/Firmware/variants/1_75mm_MK3-EINSy10a-E3Dv6full.h ./Prusa-Firmware/Firmware/variants/1_75mm_MK3-Skelestruder-16-EINSy10a-E3Dv6full.h
- cd $DRONE_WORKSPACE
- bash -x PF-build.sh 1_75mm_MK3-Skelestruder-16-EINSy10a-E3Dv6full.h ALL $BUILD_TYPE
when:
event:
- push
- tag
- pull_request
depends_on:
- build
- name: prepare-hex
image: vertigo235/fw-build:1
commands:
- cd $DRONE_WORKSPACE
- mkdir out
- mkdir fileshare
- cd $DRONE_WORKSPACE_BASE/PF-build-hex
- mv `find -name "*.zip"` $DRONE_WORKSPACE/out
- mv `find -name "*.hex"` $DRONE_WORKSPACE/out
- cd $DRONE_WORKSPACE/fileshare
- zip -q -j prusa3d_fw_$(git rev-parse --short HEAD).zip $DRONE_WORKSPACE/out/*.*
when:
event:
- tag
- push
- pull_request
depends_on:
- build
- skele-build
- name: transfersh
image: vertigo235/fw-build:1
failure: ignore
commands:
- cd $DRONE_WORKSPACE/fileshare
- curl --upload-file prusa3d_fw_$(git rev-parse --short HEAD).zip https://transfer.sh/prusa3d_fw_$(git rev-parse --short HEAD).zip
- echo
when:
event:
- push
- tag
- pull_request
depends_on:
- prepare-hex
- name: fileio
image: vertigo235/fw-build:1
failure: ignore
commands:
- cd $DRONE_WORKSPACE/fileshare
- curl -F "file=@prusa3d_fw_$(git rev-parse --short HEAD).zip" https://file.io
- echo
when:
event:
- push
- tag
- pull_request
depends_on:
- prepare-hex
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github-token
prerelease: true
draft: true
checksum: md5
files:
- out/*.*
when:
event:
- tag
depends_on:
- prepare-hex