@@ -53,20 +53,20 @@ any_filter: &any_filter
53
53
release_filter : &release_filter
54
54
filters :
55
55
tags :
56
- # This regex matches what is found in 'scripts/get-version' with the
57
- # '[[:digit:]]' transformed into '\d'. This also excludes release
58
- # candidate detection, because this filter only matches against
59
- # full releases.
60
56
only : /^v(\d+)(?:\.(\d+))?(?:\.(\d+))?$/
61
57
branches :
62
58
ignore : /.*/
63
59
60
+ main_filter : &main_filter
61
+ filters :
62
+ branches :
63
+ only : main
64
+
64
65
nofork_filter : &nofork_filter
65
66
filters :
66
67
branches :
67
68
ignore : /pull\/[0-9]+/
68
69
69
-
70
70
commands :
71
71
rust_components :
72
72
description : Verify installed components
@@ -278,21 +278,24 @@ jobs:
278
278
parameters :
279
279
target :
280
280
type : string
281
+ profile :
282
+ type : string
283
+ default : release
281
284
steps :
282
285
- checkout
283
286
- run :
284
287
name : Install Target
285
288
command : rustup target add << parameters.target >>
286
289
- run :
287
290
name : Cargo release build
288
- command : target-env cargo build --target=<< parameters.target >> --workspace --release
291
+ command : target-env cargo build --target=<< parameters.target >> --profile=<< parameters.profile >> --workspace
289
292
# linking might take a while and doesn't produce CLI output
290
293
no_output_timeout : 30m
291
294
- run :
292
295
name : tar and gzip build artifacts
293
296
command : |
294
297
mkdir -p artifacts
295
- tar --ignore-failed-read -czvf "${PWD}/artifacts/influxdb3-edge_<< parameters.target >>.tar.gz" -C "${PWD}/target/<< parameters.target >>/release " influxdb3{,.exe}
298
+ tar --ignore-failed-read -czvf "${PWD}/artifacts/influxdb3-edge_<< parameters.target >>.tar.gz" -C "${PWD}/target/<< parameters.target >>/<< parameters.profile >> " influxdb3{,.exe}
296
299
- store_artifacts :
297
300
path : artifacts
298
301
- persist_to_workspace :
@@ -473,9 +476,40 @@ jobs:
473
476
- run : |
474
477
echo build executed successfully
475
478
476
-
477
479
workflows :
478
480
version : 2
481
+ snapshot :
482
+ jobs :
483
+ - build-release :
484
+ << : *main_filter
485
+ name : build-snapshot-<< matrix.target >>
486
+ matrix :
487
+ parameters :
488
+ profile :
489
+ - quick-release
490
+ target :
491
+ - aarch64-apple-darwin
492
+ - aarch64-unknown-linux-gnu
493
+ - aarch64-unknown-linux-musl
494
+ - x86_64-pc-windows-gnu
495
+ - x86_64-unknown-linux-gnu
496
+ - x86_64-unknown-linux-musl
497
+ - build-packages :
498
+ << : *main_filter
499
+ requires :
500
+ - build-release
501
+ - sign-packages :
502
+ << : *main_filter
503
+ requires :
504
+ - build-packages
505
+ - publish-packages :
506
+ << : *main_filter
507
+ matrix :
508
+ parameters :
509
+ destination : [ snapshots ]
510
+ requires :
511
+ - build-release
512
+ - sign-packages
479
513
ci :
480
514
jobs :
481
515
- fmt :
@@ -539,7 +573,6 @@ workflows:
539
573
arch : [ x86_64, aarch64 ]
540
574
requires :
541
575
- build-packages
542
-
543
576
- sign-packages :
544
577
<< : *release_filter
545
578
requires :
0 commit comments