GithubHelp home page GithubHelp logo

pbeast / gha-setup-vsdevenv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seanmiddleditch/gha-setup-vsdevenv

0.0 0.0 0.0 245 KB

GitHub Action to setup the VS dev environment for the job

License: MIT License

JavaScript 98.10% C++ 1.90%

gha-setup-vsdevenv's Introduction

setup-vsdevenv

GitHub Action for setting Visual Studio build environment variables and paths for subsequent steps in the job.

This can be especially useful for building C++ using the MSVC compiler using build tools like CMake which lack the good sense to find VS themselves.

The action can find any compatible VS installation (via required VS components), though it will still always run the vsdevenv command and update the environment accordingly.

Inputs

  • vswhere: Path to vswhere.exe (default system-installed copy).
  • arch: Build architecture (default amd64).
  • host_arch: Host architecture override.
  • winsdk: WinSDK version override.
  • toolset_version: Build toolset version override.
  • components: List of required VS components, semi-colon separated. (default Microsoft.VisualStudio.Component.VC.Tools.x86.x64)

Outputs

  • install_path: Selected VS installation path.

License

MIT License. See LICENSE for details.

Usage Example

jobs:
  build:
    - uses: actions/checkout@master
    - uses: seanmiddleditch/gha-setup-vsdevenv@master
    - run: |
        mkdir build
        cd build
        cmake -DCMAKE_CXX_COMPILER=cl.exe ..
    - run: cmake --build build

gha-setup-vsdevenv's People

Contributors

seanmiddleditch avatar pbeast avatar py250015 avatar compnerd avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.