Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play-circle

GitHub Action

Rust Toolchain for Xtensa

v1.2.0

Rust Toolchain for Xtensa

play-circle

Rust Toolchain for Xtensa

Install the Rust compiler fork targeting Xtensa devices

Installation

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

              

- name: Rust Toolchain for Xtensa

uses: esp-rs/xtensa-toolchain@v1.2.0

Learn more about this action in esp-rs/xtensa-toolchain

Choose a version

xtensa-toolchain Action

CI MIT/Apache-2.0 licensed

An action which installs the Rust compiler fork with Xtensa support, as well as the required toolchain binaries.

The Rust compiler fork with Xtensa support can be found at esp-rs/rust. Pre-built binaries with installation scripts can be found at esp-rs/rust-build, which is what this action uses.

Example workflow

on: [push]

name: CI

jobs:
  check:
    name: Rust project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Install Rust for Xtensa
        uses: esp-rs/xtensa-toolchain@v1.1
        with:
          default: true
          version: "1.60.0"
          ldproxy: true

      # `cargo check` command here will use installed `esp` toolchain, as it
      # has been set as the default above

      - name: Run cargo check
        uses: actions-rs/cargo@v1
        with:
          command: check

Inputs

Name Description Type Default
default Set installed toolchain as a default toolchain bool false
buildtargets Comma separated list of targets bool all
version Which version of the toolchain to install string latest
ldproxy Whether to install ldproxy (required for std) bool true

All inputs are optional; if no inputs are provided:

  • the Rust compiler fork with Xtensa support will NOT be set as the default (but is usable via the +esp toolchain specifier)
  • all available build targets will be installed
  • the latest available version of the compiler will be installed
  • ldproxy WILL be installed; this is required for std, however installing it significantly increases the total run time of this action

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.