Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabasoad/setup-cobol-action

This action installs GnuCOBOL.
https://github.com/fabasoad/setup-cobol-action

cobol github-action github-actions gnucobol

Last synced: about 2 months ago
JSON representation

This action installs GnuCOBOL.

Awesome Lists containing this project

README

        

# Setup COBOL (GnuCOBOL)

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
![GitHub release](https://img.shields.io/github/v/release/fabasoad/setup-cobol-action?include_prereleases)
![functional-tests-local](https://github.com/fabasoad/setup-cobol-action/actions/workflows/functional-tests-local.yml/badge.svg)
![functional-tests-remote](https://github.com/fabasoad/setup-cobol-action/actions/workflows/functional-tests-remote.yml/badge.svg)
![security](https://github.com/fabasoad/setup-cobol-action/actions/workflows/security.yml/badge.svg)
![linting](https://github.com/fabasoad/setup-cobol-action/actions/workflows/linting.yml/badge.svg)

This action sets up a [GnuCOBOL](https://en.wikipedia.org/wiki/COBOL) 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

```yaml
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

```text
Run cobc -x HelloWorld.cob
Hello World!
```