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

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 1 month 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](https://github.com/fabasoad/setup-cobol-action/actions/workflows/functional-tests.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

| OS | |
|---------|--------------------|
| Windows | :x: |
| Linux | :white_check_mark: |
| macOS | :x: |

## Inputs

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

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

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