From b1b45b5054b2f9a4d294413212ab149649b2d6b3 Mon Sep 17 00:00:00 2001 From: Maddiaa <47148561+Maddiaa0@users.noreply.github.com> Date: Tue, 29 Aug 2023 12:08:21 +0100 Subject: [PATCH] chore(ci): Allow releases to have additional feature flags (#2405) --- .github/workflows/publish.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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.