GitHub action to set up Clang & LLVM
.github/workflows | ||
.gitattributes | ||
action.yml | ||
foo.cpp | ||
LICENSE.txt | ||
README.md |
Set up Clang
This is a GitHub action that sets up Clang & LLVM in your workflow run.
Use it in your workflow like this:
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
platform: x64
x64
is the default value for theplatform
parameter and can be omitted. Usex86
if you want to build 32-bit binaries.- Set the
cygwin
parameter to1
to set up Clang inside an existing Cygwin installation (you can set up Cygwin itself using my action setup-cygwin). cc
andc++
executables are set up, pointing to theclang
andclang++
executables. Disable this by setting thecc
parameter to0
.
API
Input | Value | Default | Description |
---|---|---|---|
platform | x64 | Yes | Install the x86_64 toolchain. |
Other | No | Install the i686 toolchain. | |
cygwin | Other | Yes | Install native binaries. |
1 | No | Install Cygwin packages. | |
cc | 1 | Yes | Set up cc /c++ executables. |
Other | No | Don't set up cc /c++ . |
|
hardlinks | Other | Yes | Cygwin: don't convert any symlinks. |
1 | No | Cygwin: convert symlinks in /usr/bin to hardlinks. |
License
Distributed under the MIT License. See LICENSE.txt for details.