From f98d9d89bc553b70548eead86af2df07a2dcd015 Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Wed, 21 Sep 2022 12:24:09 +0100 Subject: [PATCH] GitHub Actions - add input to manual dispatch Adds `RUST_FLAGS="--cfg tokio_unstable"` when the input is true to add the tokio console to the validator api --- .github/workflows/nym-release-publish.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/nym-release-publish.yml b/.github/workflows/nym-release-publish.yml index 32fb811493..7fd455dd46 100644 --- a/.github/workflows/nym-release-publish.yml +++ b/.github/workflows/nym-release-publish.yml @@ -2,6 +2,12 @@ name: Publish Nym binaries on: workflow_dispatch: + inputs: + add_tokio_unstable: + description: 'True to add RUSTFLAGS="--cfg tokio_unstable"' + required: true + default: false + type: boolean release: types: [created] @@ -25,6 +31,11 @@ jobs: with: script: | core.setFailed('Release tag did not start with nym-binaries-...') + + - name: Sets env vars for tokio if set in manual dispatch inputs + run: | + echo 'RUSTFLAGS="--cfg tokio_unstable"' >> $GITHUB_ENV + if: github.event_name == 'workflow_dispatch' && inputs.add_tokio_unstable == true - name: Install Rust stable uses: actions-rs/toolchain@v1