Skip to content

fabasoad/setup-cobol-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Setup COBOL (GnuCOBOL)

Stand With Ukraine GitHub release functional-tests-local functional-tests-remote security linting

This action sets up a GnuCOBOL programming language.

Supported OS: Linux Ubuntu.

Inputs

Name Required Description Default Possible values
version No GnuCOBOL version. 3.1.2 3.0-rc1, 3.1-rc1, 3.1.1, 3.1.2

Example usage

Workflow configuration

name: Setup COBOL

on: push

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

Result

Run cobc -x HelloWorld.cob
Hello World!