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:
- Name of steps are not displayed. (GitHub discussion)
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: ""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.abWith custom cache path:
- uses: lens0021/setup-amber@v1
with:
amber-version: 0.4.0-alpha
cache-path: /tmp/amber-cacheThis project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.