Skip to content

lens0021/setup-amber-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-amber

Linter Test

GitHub Actions for setting up Amber compiler.

This action downloads and installs the Amber compiler binary, making it available for subsequent steps in your workflow.

Note

This is a composite action because I want less maintaining costs. There is a limitation of composite action itself:

Usage

See action.yaml

- uses: lens0021/setup-amber@v1
  with:
    # The Amber version to install.
    # Examples: 0.4.0-alpha, 0.5.0-alpha
    # Default: 0.4.0-alpha
    amber-version: ""

    # Whether to cache Amber binaries
    # Default: true
    enable-cache: ""

    # The path to store Amber binaries.
    # If empty string is given, the used path depends on the runner.
    # Default (Linux): '/home/runner/.setup-amber'
    # Default (Mac): '/Users/runner/.setup-amber'
    cache-path: ""

Example workflow

Basic usage:

name: Build with Amber

on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Setup Amber
        uses: lens0021/setup-amber@v1
        with:
          amber-version: 0.4.0-alpha

      - name: Compile Amber script
        run: amber script.ab

With custom cache path:

- uses: lens0021/setup-amber@v1
  with:
    amber-version: 0.4.0-alpha
    cache-path: /tmp/amber-cache

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

About

Download amber compiler

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •