This GitHub action sets up GCC in your workflow run.
- Installs either 32-bit or 64-bit GCC on either Ubuntu or Cygwin.
- For installing GCC on Windows please see my action setup-mingw.
Use it in your workflow like this:
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
platform: x64
x64is the default value for theplatformparameter and can be omitted. Usex86if you want to build 32-bit binaries.- Set the
cygwinparameter to1to set up GCC inside an existing Cygwin installation (you can set up Cygwin itself using my action setup-cygwin). ccandc++executables are set up, pointing to thegccandg++executables. Disable this by setting theccparameter to0.
| Input | Value | Default | Description |
|---|---|---|---|
| platform | x64 | ✓ | Install the x86_64 toolchain. |
| any | Install the i686 toolchain. | ||
| cygwin | any | ✓ | Install native binaries. |
| 1 | Install Cygwin packages. | ||
| cc | 1 | ✓ | Set up cc/c++ executables. |
| any | Don't set up cc/c++. |
||
| hardlinks | any | ✓ | Cygwin: don't convert any symlinks. |
| 1 | Cygwin: convert symlinks in /usr/bin to hardlinks. |
Distributed under the MIT License. See LICENSE.txt for details.