Environment variable expansion in Windows bash shell

version: 2.1

orbs:
  win: circleci/windows@2.4.0

jobs:
  build:
    executor: win/default
    
    environment:
      THIRDPARTY_HOME: C:/Users/circleci/thirdparty
      CMAKE_HOME: ${THIRDPARTY_HOME}/cmake-3.16.4-win64-x64
      CMAKE_BIN: ${CMAKE_HOME}/bin/cmake.exe

    steps:
       - run:
             shell: bash.exe
             command: ${CMAKE_BIN}

results in ${CMAKE_HOME}/bin/cmake.exe unknown file or dirctory, does CircleCI support env variable expansion in Wndows bash shell?

Hi!

Welcome to CircleCI Discuss! Currently the config.yml does not support nested environment variables. I could not find any ideas about this on https://ideas.circleci.com/ideas/ so I highly recommend you make a post there! This is something that I am sure many people would find useful.

Thanks, added idea https://ideas.circleci.com/ideas/CCI-I-1427

1 Like