Skip to content

Commit

Permalink
changed order of flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jstuczyn committed Oct 15, 2024
1 parent ff3b920 commit b05c1a4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/temp-build-nym-api-aero-mem-prof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,29 @@ jobs:
with:
toolchain: stable

- 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: TEST print env1
run: echo ${{ toJSON(env) }}

- name: TEST print env2
run: echo ${{ env.CARGO_FEATURES }}

- 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: Maybe build nym-api with jemalloc
uses: actions-rs/cargo@v1
with:
command: build
args: --bin nym-api --release ${{ env.CARGO_FEATURES }} --features=memory-prof
args: --bin nym-api --release --features=memory-prof ${{ env.CARGO_FEATURES }}
if: github.event_name == 'workflow_dispatch' && inputs.enable_jemalloc == true

- name: Maybe build nym-api WITHOUT jemalloc
uses: actions-rs/cargo@v1
with:
command: build
args: --bin nym-api ${{ env.CARGO_FEATURES }} --release
args: --bin nym-api --release ${{ env.CARGO_FEATURES }}
if: github.event_name == 'workflow_dispatch' && inputs.enable_jemalloc == false

- name: Upload Artifact
Expand Down

0 comments on commit b05c1a4

Please sign in to comment.