Skip to content

Setup COBOL

Actions
This action sets up GnuCOBOL
v1.5.0
Latest
Star (13)

Setup COBOL (GnuCOBOL)

Stand With Ukraine GitHub release functional-tests security linting

This action sets up a GnuCOBOL programming language.

Supported OS

OS
Windows
Linux
macOS

Inputs

- uses: fabasoad/setup-cobol-action@v1
  with:
    # (Optional) GnuCOBOL version. Defaults to 3.2.
    version: "3.2"
    # (Optional) If "true" it installs cobc even if it is already installed on a
    # runner. Otherwise, skips installation.
    force: "false"

Outputs

Name Description Example
installed Whether cobc was installed or not true

Example usage

Workflow configuration

name: Setup COBOL

on: push

jobs:
  setup:
    name: Setup
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: fabasoad/setup-cobol-action@v1
      - name: Run script
        run: |
          cobc -x HelloWorld.cob
          ./HelloWorld

Result

Run cobc -x HelloWorld.cob
Hello World!

Setup COBOL is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

This action sets up GnuCOBOL
v1.5.0
Latest

Setup COBOL is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.