Skip to content
arrow-down-circle

GitHub Action

Setup Binary Packages

v1.2.1 Latest version

Setup Binary Packages

arrow-down-circle

Setup Binary Packages

GitHub Action to install Go/Rust binaries

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Binary Packages

uses: tj-actions/[email protected]

Learn more about this action in tj-actions/setup-bin

Choose a version

CI Update release version. Public workflows that use this action.

setup-bin

GitHub action to download and install go and rust binaries from github release artifacts created by goreleaser-action or rust-build.action.

...
    steps:
      - uses: actions/checkout@v2
      - name: Setup bin
        id: serup-bin-go
        uses: tj-actions/setup-bin@v1
        with:
          language-type: 'go'
          repository-owner: [REPOSITORY_OWNER]
          repository: [REPOSITORY]
          
      - name: Show output
        run: |
          echo "setup-bin-go: ${{ steps.setup-bin-go.outputs.binary_path }}"

Inputs

INPUT TYPE REQUIRED DEFAULT DESCRIPTION
language-type string true Language type of package to
install: rust or go
repository string true Repository where the binary is
located
repository-owner string true Repository owner where the binary
is located
token string false "${{ github.token }}" GITHUB_TOKEN or a Repo scoped
PAT
version string false "latest" Version of the binary to
install

Outputs

OUTPUT TYPE DESCRIPTION
binary_path string Path to the installed binary

If you feel generous and want to show some extra appreciation:

Buy me a coffee

Credits

This package was created with Cookiecutter using cookiecutter-action

Report Bugs

Report bugs at https://github.com/tj-actions/setup-bin/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your workflow that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.