@@ -103,9 +103,6 @@ commands:
103
103
target :
104
104
description : " Rust target to put in artifact"
105
105
type : string
106
- version :
107
- description : " Version to use for artifact"
108
- type : string
109
106
suffix :
110
107
description : " Suffix that is on the binary"
111
108
type : string
@@ -118,11 +115,11 @@ commands:
118
115
mv target/<< parameters.target >>/release/cargo-shuttle<< parameters.suffix >> artifacts/shuttle<< parameters.suffix >>
119
116
mv LICENSE artifacts/
120
117
mv README.md artifacts/
121
- 7z a -ttar -so -an artifacts | 7z a -si artifacts/shuttle-<< parameters.version >> -<< parameters.target >>.tar.gz
118
+ 7z a -ttar -so -an artifacts | 7z a -si artifacts/shuttle-${CIRCLE_TAG} -<< parameters.target >>.tar.gz
122
119
- persist_to_workspace :
123
120
root : artifacts
124
121
paths :
125
- - shuttle-<< parameters.version >> -<< parameters.target >>.tar.gz
122
+ - shuttle-${CIRCLE_TAG} -<< parameters.target >>.tar.gz
126
123
127
124
jobs :
128
125
workspace-fmt :
@@ -294,8 +291,6 @@ jobs:
294
291
cargo build --release --package cargo-shuttle --features vendored-openssl --target << parameters.target >>
295
292
- make-artifact :
296
293
target : << parameters.target >>
297
- # version: {{ .Environment.CIRCLE_TAG }}
298
- version : version
299
294
build-binaries-windows :
300
295
executor :
301
296
name : win/server-2022
@@ -320,8 +315,6 @@ jobs:
320
315
..\.cargo\bin\cargo.exe build --release --package cargo-shuttle --features vendored-openssl --target x86_64-pc-windows-msvc
321
316
- make-artifact :
322
317
target : x86_64-pc-windows-msvc
323
- # version: {{ .Environment.CIRCLE_TAG }}
324
- version : version
325
318
suffix : " .exe"
326
319
build-binaries-mac :
327
320
macos :
@@ -340,8 +333,6 @@ jobs:
340
333
cargo build --release --package cargo-shuttle --features vendored-openssl --target x86_64-apple-darwin
341
334
- make-artifact :
342
335
target : x86_64-apple-darwin
343
- # version: {{ .Environment.CIRCLE_TAG }}
344
- version : version
345
336
publish-github-release :
346
337
docker :
347
338
- image : cimg/go:1.19.3
@@ -404,33 +395,39 @@ workflows:
404
395
image : ubuntu-2204:2022.04.1
405
396
target : x86_64-unknown-linux-musl
406
397
resource_class : medium
407
- # # requires:
408
- # # - build-and-push
409
- # filters:
410
- # tags:
411
- # only: /^v.*/
398
+ # requires:
399
+ # - build-and-push
400
+ filters :
401
+ tags :
402
+ only : /^v.*/
403
+ branches :
404
+ ignore : /.*/
412
405
- build-binaries-linux :
413
406
name : build-binaries-aarch64
414
407
image : ubuntu-2004:202101-01
415
408
target : aarch64-unknown-linux-musl
416
409
resource_class : arm.medium
417
- # # requires:
418
- # # - build-and-push
419
- # filters:
420
- # tags:
421
- # only: /^v.*/
422
- - build-binaries-windows
423
- # requires:
424
- # - build-and-push
425
- # filters:
426
- # tags:
427
- # only: /^v.*/
428
- - build-binaries-mac
429
410
# requires:
430
411
# - build-and-push
431
- # filters:
432
- # tags:
433
- # only: /^v.*/
412
+ filters :
413
+ tags :
414
+ only : /^v.*/
415
+ branches :
416
+ ignore : /.*/
417
+ - build-binaries-windows :
418
+ # requires:
419
+ # - build-and-push
420
+ filters :
421
+ tags :
422
+ only : /^v.*/
423
+ branches :
424
+ ignore : /.*/
425
+ - build-binaries-mac :
426
+ # requires:
427
+ # - build-and-push
428
+ filters :
429
+ tags :
430
+ only : /^v.*/
434
431
- publish-github-release :
435
432
requires :
436
433
- build-binaries-x86_64
@@ -440,3 +437,5 @@ workflows:
440
437
filters :
441
438
tags :
442
439
only : /^v.*/
440
+ branches :
441
+ ignore : /.*/
0 commit comments