GitHub action to set up Clang & LLVM
Find a file
2021-04-18 08:39:55 +03:00
.github/workflows workflows/test.yml: setup-cygwin v3 2021-01-10 18:08:58 +03:00
.gitattributes initial commit 2021-01-01 02:23:00 +03:00
action.yml choco scripting best practices 2021-01-15 19:58:01 +03:00
foo.cpp initial commit 2021-01-01 02:23:00 +03:00
LICENSE.txt initial commit 2021-01-01 02:23:00 +03:00
README.md README: update 2021-04-18 08:39:55 +03:00

Set up Clang

Test

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 the platform parameter and can be omitted. Use x86 if you want to build 32-bit binaries.
  • Set the cygwin parameter to 1 to set up Clang inside an existing Cygwin installation (you can set up Cygwin itself using my action setup-cygwin).
  • cc and c++ executables are set up, pointing to the clang and clang++ executables. Disable this by setting the cc parameter to 0.

API

Input Value Default Description
platform x64 Install the x86_64 toolchain.
Other Install the i686 toolchain.
cygwin Other Install native binaries.
1 Install Cygwin packages.
cc 1 Set up cc/c++ executables.
Other Don't set up cc/c++.
hardlinks Other Cygwin: don't convert any symlinks.
1 Cygwin: convert symlinks in /usr/bin to hardlinks.

License

Distributed under the MIT License. See LICENSE.txt for details.