File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ jobs:
114
114
run : ${{ env.CARGO }} build --release --locked --target ${{ matrix.target }} -p scarb-prove -p scarb-verify
115
115
116
116
- name : Create archive
117
- run : cargo xtask create-archive
117
+ run : cargo xtask create-archive ${{ !inputs.include-cairols && '--skip-cairols' || '' }} ${{ !inputs.include-stwo && '--skip-stwo' || '' }}
118
118
env :
119
119
STAGING : scarb-${{ inputs.scarb-tag }}-${{ matrix.target }}
120
120
TARGET : ${{ matrix.target }}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use std::path::PathBuf;
2
2
3
3
use anyhow:: Result ;
4
4
use clap:: Parser ;
5
- use xshell:: { cmd , Shell } ;
5
+ use xshell:: { Shell , cmd } ;
6
6
7
7
use crate :: list_binaries:: list_binaries;
8
8
@@ -12,6 +12,10 @@ pub struct Args {
12
12
target : Option < String > ,
13
13
#[ arg( short, long, env = "STAGING" ) ]
14
14
staging : PathBuf ,
15
+ #[ arg( long) ]
16
+ skip_cairols : bool ,
17
+ #[ arg( long) ]
18
+ skip_stwo : bool ,
15
19
}
16
20
17
21
pub fn main ( args : Args ) -> Result < ( ) > {
@@ -38,6 +42,12 @@ pub fn main(args: Args) -> Result<()> {
38
42
}
39
43
40
44
for bin in list_binaries ( ) ? {
45
+ if args. skip_cairols && bin == "scarb-cairo-language-server" {
46
+ continue ;
47
+ }
48
+ if args. skip_stwo && ( bin == "scarb-prove" || bin == "scarb-verify" ) {
49
+ continue ;
50
+ }
41
51
let file_name = format ! ( "{bin}{bin_ext}" ) ;
42
52
sh. copy_file (
43
53
target_dir. join ( "release" ) . join ( & file_name) ,
You can’t perform that action at this time.
0 commit comments