Skip to content

Commit c28fc3b

Browse files
committed
Add input to skip stwo to release build
1 parent 9091728 commit c28fc3b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/_build-release.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
ref:
1111
required: false
1212
type: string
13+
include_stwo:
14+
description: "Include Stwo in build"
15+
type: boolean
16+
default: true
1317

1418
env:
1519
# TODO(#1915): Use stable toolchain once stwo is stable.
@@ -79,20 +83,22 @@ jobs:
7983
run: ${{ env.CARGO }} build --release --locked --target ${{ matrix.target }} --workspace --exclude scarb-prove --exclude scarb-verify
8084

8185
- uses: dtolnay/rust-toolchain@master
86+
if: inputs.include_stwo
8287
with:
8388
target: ${{ matrix.target }}
8489
toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
8590

8691
- name: Install cross
87-
if: matrix.cross
92+
if: matrix.cross && inputs.include_stwo
8893
uses: taiki-e/install-action@cross
8994

9095
- name: Enable cross-compilation
91-
if: matrix.cross
96+
if: matrix.cross && inputs.include_stwo
9297
shell: bash
9398
run: echo "CARGO=cross" >> $GITHUB_ENV
9499

95100
- name: Build nightly crates
101+
if: inputs.include_stwo
96102
run: ${{ env.CARGO }} build --release --locked --target ${{ matrix.target }} -p scarb-prove -p scarb-verify
97103

98104
- name: Create archive

0 commit comments

Comments
 (0)