Use this action to install the Fuel toolchain using fuelup
.
Heavily based on @actions-rs/toolchain
.
Table of Contents
on: [push]
name: build
jobs:
check:
name: Sway project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Fuel toolchain
uses: FuelLabs/action-fuel-toolchain@v0.6.0
with:
toolchain: latest # or nightly, beta-1, beta-2, beta-3, beta-4, beta-5
Name | Required | Description | Type | Default |
---|---|---|---|---|
toolchain |
Official toolchain name to use. possible values: latest , nightly |
string | ||
date |
Optional date specifier for the latest or nightly toolchain |
string | ||
name |
Custom toolchain name to use | string | ||
components |
Comma-separated list of the additional components to install. Component names may optionally be appended with their version, ex. forc@0.19.2, fuel-core |
string |
Sometimes, you may require a toolchain pinned to a prior latest
release:
on: [push]
name: build
jobs:
check:
name: Sway project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Fuel toolchain
uses: FuelLabs/action-fuel-toolchain@v0.6.0
with:
toolchain: latest
date: 2023-01-18 # This pins to the `latest` toolchain released on 2023-01-18 (YYYY-MM-DD)
This action supports installing fuelup components on custom toolchains:
- name: Install Fuel toolchain
uses: FuelLabs/action-fuel-toolchain@v0.6.0
with:
name: my-custom-toolchain
components: forc, fuel-core
- name: Install Fuel toolchain
uses: FuelLabs/action-fuel-toolchain@v0.6.0
with:
name: my-custom-toolchain
components: forc
- name: Install Fuel toolchain
uses: FuelLabs/action-fuel-toolchain@v0.6.0
with:
name: my-custom-toolchain
components: forc, fuel-core@0.8.5
Apache License, Version 2.0, (LICENSE or https://www.apache.org/licenses/LICENSE-2.0)