Sets environment variables for MSVC development environment.
-
arch
- The CPU architecture for the build (optional, defaults toamd64
akax64
). -
env-file
- A path relative to the GitHub workspace where the environment variables are written in addition to setting the environment (optional).
- name: Set-up MSVC Environment
uses: mbeckh/cmake-utils/msvc-dev-env@v1
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