diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1826e596115..fd9638665e2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,9 @@ on: tag: description: The tag to build Nargo from (leave empty to build a nightly release from master) required: false + features: + description: Extra feature flags to release with + required: false publish: description: Whether to publish the build artifacts type: boolean @@ -106,7 +109,7 @@ jobs: env: BARRETENBERG_BIN_DIR: ${{ github.workspace }}/libbarretenberg-wasm32/bin run: | - cargo build --package nargo_cli --release --target ${{ matrix.target }} --no-default-features --features plonk_bn254_wasm + cargo build --package nargo_cli --release --target ${{ matrix.target }} --no-default-features --features "plonk_bn254_wasm ${{ inputs.features }}" - uses: actions/cache/save@v3 # Don't create cache entries for the merge queue. @@ -198,7 +201,7 @@ jobs: BARRETENBERG_BIN_DIR: ${{ github.workspace }}/libbarretenberg-wasm32/bin run: | cargo install cross --version 0.2.5 --force - cross build --package nargo_cli --release --target=${{ matrix.target }} --no-default-features --features plonk_bn254_wasm + cross build --package nargo_cli --release --target=${{ matrix.target }} --no-default-features --features "plonk_bn254_wasm ${{ inputs.features }}" - uses: actions/cache/save@v3 # Don't create cache entries for the merge queue. @@ -282,7 +285,7 @@ jobs: env: BARRETENBERG_BIN_DIR: ${{ github.workspace }}/libbarretenberg-wasm32/bin run: | - cargo build --package nargo_cli --release --target ${{ matrix.target }} --no-default-features --features plonk_bn254_wasm + cargo build --package nargo_cli --release --target ${{ matrix.target }} --no-default-features --features "plonk_bn254_wasm ${{ inputs.features }}" - uses: actions/cache/save@v3 # Don't create cache entries for the merge queue.