Skip to content
⚙️ GitHub Action for searching nightly component availability
TypeScript JavaScript
Branch: master
Clone or download
dependabot-preview Bump typescript from 3.6.4 to 3.7.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.6.4 to 3.7.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v3.6.4...v3.7.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit 2dee382 Nov 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Make `target` input optional. Sep 17, 2019
__tests__ Initial commit Sep 14, 2019
dist Release v1.1.1 Oct 29, 2019
src Release v1.1.1 Oct 29, 2019
.editorconfig Initial commit Sep 14, 2019
.gitignore Initial commit Sep 14, 2019
CHANGELOG.md Release v1.1.1 Oct 29, 2019
LICENSE Initial commit Sep 14, 2019
README.md Deprecation notice Oct 29, 2019
action.yml Make `target` input optional. Sep 17, 2019
jest.config.js Initial commit Sep 14, 2019
package-lock.json Bump typescript from 3.6.4 to 3.7.2 Nov 11, 2019
package.json Bump typescript from 3.6.4 to 3.7.2 Nov 11, 2019
tsconfig.json Initial commit Sep 14, 2019

README.md

rust-components-nightly Action

MIT licensed Gitter

This GitHub Action finds the latest Rust nightly build with the requested component available.

Deprecation notice

Since actions-rs/toolchain Action is now utilizes rustup ability to find the most recent nightly build with multiple components available, this Action is deprecated now.
Consider removing it from your workflows and use actions-rs/toolchain directly.

For example, instead of

steps:
  - uses: actions/checkout@master
  - id: component
    uses: actions-rs/components-nightly@v1
    with:
      component: clippy
  - uses: actions-rs/toolchain@v1
    with:
        toolchain: ${{ steps.component.outputs.toolchain }}
        override: true

you can now tune actions-rs/toolchain action:

steps:
  - uses: actions/checkout@master
  - uses: actions-rs/toolchain@v1
    with:
        toolchain: nightly
        components: clippy
        override: true

See Components section for more.

This Action will not be updated anymore, but will be leaved as is in order not to break workflows, which are using it already.

Background

Ever had the problem when your nightly build breaks because today nightly does not has the clippy available? With this Action you can find the most recent nightly build with the clippy available.

Found toolchain name will be set as an Action output, ex. nightly-2019-09-13-x86_64-unknown-linux-gnu.

Note that this Action does not do anything else with the found toolchain, you need to install it / set as an override manually, for example, with a actions-rs/toolchain Action.

Example workflow

on: [push]

name: nightly clippy

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - id: component
        uses: actions-rs/components-nightly@v1
        with:
          component: clippy
      - uses: actions-rs/toolchain@v1
        with:
            toolchain: ${{ steps.component.outputs.toolchain }}
            override: true

See additional recipes here.

Inputs

Name Required Description Type Default
component Component name to search for string
target Rust target triple (see Target input section below) string host-dependant

Target input

If the target input is omitted, default target triple for the current host will be used:

Virtual environment Target triple
windows-latest / windows-2019 x86_64-pc-windows-msvc
windows-2016 x86_64-pc-windows-msvc
ubuntu-latest / ubuntu-18.04 x86_64-unknown-linux-gnu
ubuntu-16.04 x86_64-unknown-linux-gnu
macOS-latest / macOS-10.14 x86_64-apple-darwin

Outputs

Name Description Type
toolchain Most recent nightly toolchain name with the requested component available,ex. nightly-2019-09-13-x86_64-unknown-linux-gnu string
command Cargo command to call this component (might be useful when you need to install rustfmt but call the cargo fmt then) string
You can’t perform that action at this time.