File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 10
10
ref :
11
11
required : false
12
12
type : string
13
+ include_stwo :
14
+ description : " Include Stwo in build"
15
+ type : boolean
16
+ default : true
13
17
14
18
env :
15
19
# TODO(#1915): Use stable toolchain once stwo is stable.
@@ -79,20 +83,22 @@ jobs:
79
83
run : ${{ env.CARGO }} build --release --locked --target ${{ matrix.target }} --workspace --exclude scarb-prove --exclude scarb-verify
80
84
81
85
- uses : dtolnay/rust-toolchain@master
86
+ if : inputs.include_stwo
82
87
with :
83
88
target : ${{ matrix.target }}
84
89
toolchain : ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
85
90
86
91
- name : Install cross
87
- if : matrix.cross
92
+ if : matrix.cross && inputs.include_stwo
88
93
uses : taiki-e/install-action@cross
89
94
90
95
- name : Enable cross-compilation
91
- if : matrix.cross
96
+ if : matrix.cross && inputs.include_stwo
92
97
shell : bash
93
98
run : echo "CARGO=cross" >> $GITHUB_ENV
94
99
95
100
- name : Build nightly crates
101
+ if : inputs.include_stwo
96
102
run : ${{ env.CARGO }} build --release --locked --target ${{ matrix.target }} -p scarb-prove -p scarb-verify
97
103
98
104
- name : Create archive
You can’t perform that action at this time.
0 commit comments