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.
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
Name | Description | Type | Default |
---|---|---|---|
default |
Set installed toolchain as a default toolchain | bool | false |
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) - 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
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
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.