Skip to content

Commit c51f01f

Browse files
committed
ci: add circleci deploy stage
1 parent 537a525 commit c51f01f

File tree

1 file changed

+54
-21
lines changed

1 file changed

+54
-21
lines changed

.circleci/config.yml

Lines changed: 54 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ jobs:
4242
name: Build 35
4343
command: |
4444
python compile.py build
45-
- run:
46-
name: Upload binary
47-
command: |
48-
if [ "$CIRCLE_TAG" != "" ]; then \
49-
ghr "${CIRCLE_TAG}" build/lib/py_sourcemap/*.so
50-
fi
5145
- run:
5246
name: Prune the output files
5347
command: |
@@ -57,7 +51,7 @@ jobs:
5751
- persist_to_workspace:
5852
root: "."
5953
paths:
60-
- target/release/*
54+
- ./*
6155
build36:
6256
docker:
6357
- image: broooooklyn/rust-python:3.6
@@ -76,12 +70,6 @@ jobs:
7670
name: Build 36
7771
command: |
7872
python compile.py build
79-
- run:
80-
name: Upload binary
81-
command: |
82-
if [ "$CIRCLE_TAG" != "" ]; then \
83-
ghr "${CIRCLE_TAG}" build/lib/py_sourcemap/*.so
84-
fi
8573
- run:
8674
name: Prune the output files
8775
command: |
@@ -91,7 +79,7 @@ jobs:
9179
- persist_to_workspace:
9280
root: "."
9381
paths:
94-
- target/release/*
82+
- ./*
9583
build37:
9684
docker:
9785
- image: broooooklyn/rust-python:3.7
@@ -110,12 +98,6 @@ jobs:
11098
name: Build 37
11199
command: |
112100
python compile.py build
113-
- run:
114-
name: Upload binary
115-
command: |
116-
if [ "$CIRCLE_TAG" != "" ]; then \
117-
ghr "${CIRCLE_TAG}" build/lib/py_sourcemap/*.so
118-
fi
119101
- run:
120102
name: Prune the output files
121103
command: |
@@ -125,7 +107,34 @@ jobs:
125107
- persist_to_workspace:
126108
root: "."
127109
paths:
128-
- target/release/*
110+
- ./*
111+
112+
deploy35:
113+
docker:
114+
- image: broooooklyn/rust-python:3.5
115+
working_directory: /mnt/crate
116+
steps:
117+
- attach_workspace:
118+
at: "."
119+
- ghr "${CIRCLE_TAG}" build/lib/py_sourcemap/*.so
120+
121+
deploy36:
122+
docker:
123+
- image: broooooklyn/rust-python:3.6
124+
working_directory: /mnt/crate
125+
steps:
126+
- attach_workspace:
127+
at: "."
128+
- ghr "${CIRCLE_TAG}" build/lib/py_sourcemap/*.so
129+
130+
deploy37:
131+
docker:
132+
- image: broooooklyn/rust-python:3.7
133+
working_directory: /mnt/crate
134+
steps:
135+
- attach_workspace:
136+
at: "."
137+
- ghr "${CIRCLE_TAG}" build/lib/py_sourcemap/*.so
129138

130139
nightly:
131140
machine: true
@@ -155,9 +164,33 @@ workflows:
155164
- build35:
156165
requires:
157166
- cargo_fetch
167+
- deploy35:
168+
requires:
169+
- build35
170+
filters:
171+
tags:
172+
only: /.*/
173+
branches:
174+
only: master
158175
- build36:
159176
requires:
160177
- cargo_fetch
178+
- deploy36:
179+
requires:
180+
- build36
181+
filters:
182+
tags:
183+
only: /.*/
184+
branches:
185+
only: master
161186
- build37:
162187
requires:
163188
- cargo_fetch
189+
- deploy37:
190+
requires:
191+
- build37
192+
filters:
193+
tags:
194+
only: /.*/
195+
branches:
196+
only: master

0 commit comments

Comments
 (0)