Skip to content
box

GitHub Action

Setup GCC

v1 Latest version

Setup GCC

box

Setup GCC

Setup GCC

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup GCC

uses: Dup4/actions-setup-gcc@v1

Learn more about this action in Dup4/actions-setup-gcc

Choose a version

actions-setup-gcc

Test

This GitHub action sets up GCC in your workflow run.

  • Support Ubuntu and macOS.
  • Specify a version to install using the version parameter.

Usage

Use it in your workflow like this:

- name: Setup GCC
    uses: Dup4/actions-setup-gcc@v1
    with:
    version: latest

API

Input Value Default Description
version latest Install the latest version available in the repository.
any Install a specific version if it's available (see below).
cc true Set up cc/gcc/c++/g++/gcov executables.
false Don't set up the executables.
env true Set up CC/CXX/GCOV environment variables
false Don't set up the environment variables