Skip to content

This GitHub action installs brainfuck compiler.

License

Notifications You must be signed in to change notification settings

fabasoad/setup-brainfuck-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 Brainfuck

Stand With Ukraine Releases functional-tests linting security

This action installs brainfucky - one of the brainfuck interpreters.

Supported OS

OS
Windows
Linux
macOS

Prerequisites

None.

Inputs

- uses: fabasoad/setup-brainfuck-action@v1
  with:
    # (Optional) brainfucky interpreter version. Defaults to the latest version.
    version: "0.1.dev1"
    # (Optional) If "false" skips installation if brainfucky is already installed.
    # If "true" installs brainfucky in any case. Defaults to "false".
    force: "false"
    # (Optional) GitHub token that is used to send requests to GitHub API such
    # as getting available python versions. Defaults to the token provided by
    # GitHub Actions environment.
    github-token: "${{ github.token }}"

Outputs

Name Description Example
installed Whether brainfucky was installed or not true

Example usage

Workflow configuration

name: Test

on: push

jobs:
  build:
    name: Brainfuck
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@main
      - uses: fabasoad/setup-brainfuck-action@main
      - name: Hello World
        run: |
          touch ./hello-world.bf
          echo "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.++" > ./hello-world.bf
          echo "+.------.--------.>>+.>++." >> ./hello-world.bf
          brainfucky --file ./hello-world.bf
          rm ./hello-world.bf

Result

executing file ./hello-world.bf
Hello World!