Skip to content

Latest commit

 

History

History

msvc-dev-env

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

msvc-dev-env

Sets environment variables for MSVC development environment.

Inputs

  • arch - The CPU architecture for the build (optional, defaults to amd64 aka x64).

  • env-file - A path relative to the GitHub workspace where the environment variables are written in addition to setting the environment (optional).

Use Cases

Set Development Environment

    - name: Set-up MSVC Environment
      uses: mbeckh/cmake-utils/msvc-dev-env@v1

Set Environment and Store for Re-Use

The following code saves the environment in a file my.env in the GitHub workspace.

    - name: Set-up MSVC Environment
      uses: mbeckh/cmake-utils/msvc-dev-env@v1
      with:
        env-file: my.env

To re-use the environment in a different job, run the shell command

cat my.env >> $GITHUB_ENV