Compare commits

...

3 Commits

Author SHA1 Message Date
Mark Sinclair f56aca2e8b Update nym-release-publish.yml 2022-09-21 13:03:07 +01:00
Mark Sinclair 5d4da4e200 Update nym-release-publish.yml 2022-09-21 12:39:46 +01:00
Mark Sinclair 6f013a3efb 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
2022-09-21 12:29:42 +01:00
+19
View File
@@ -2,6 +2,12 @@ name: Publish Nym binaries
on: on:
workflow_dispatch: workflow_dispatch:
inputs:
add_tokio_unstable:
description: 'True to add RUSTFLAGS="--cfg tokio_unstable"'
required: true
default: false
type: boolean
release: release:
types: [created] types: [created]
@@ -26,6 +32,11 @@ jobs:
script: | script: |
core.setFailed('Release tag did not start with nym-binaries-...') 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 - name: Install Rust stable
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@@ -36,6 +47,14 @@ jobs:
with: with:
command: build command: build
args: --workspace --release args: --workspace --release
if: github.event_name != 'workflow_dispatch' && inputs.add_tokio_unstable == false
- name: Build all binaries (with tokio console)
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --release --features console-subscriber
if: github.event_name == 'workflow_dispatch' && inputs.add_tokio_unstable == true
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3