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.
- Host: GitHub
- URL: https://github.com/fabasoad/setup-cobol-action
- Owner: fabasoad
- License: mit
- Created: 2020-04-16T02:03:23.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-11T22:03:24.000Z (about 1 month ago)
- Last Synced: 2025-03-11T23:19:12.561Z (about 1 month ago)
- Topics: cobol, github-action, github-actions, gnucobol
- Language: Shell
- Homepage:
- Size: 799 KB
- Stars: 15
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-actions - Setup COBOL
- fucking-awesome-actions - Setup COBOL
- awesome-workflows - Setup COBOL
README
# Setup COBOL (GnuCOBOL)
[](https://stand-with-ukraine.pp.ua)



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 COBOLon: 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!
```