Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

⚙️ GitHub Action for searching nightly component availability

License

NotificationsYou must be signed in to change notification settings

actions-rs/components-nightly

Repository files navigation

MIT licensedGitter

This GitHub Action finds the latest Rust nightly buildwith the requestedcomponent available.

Deprecation notice

Sinceactions-rs/toolchainAction is now utilizesrustup ability to find the most recentnightly buildwithmultiple components available, this Action is deprecated now.
Consider removing it from your workflows and useactions-rs/toolchain directly.

For example, instead of

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

you can now tuneactions-rs/toolchain action:

steps:  -uses:actions/checkout@master  -uses:actions-rs/toolchain@v1with:toolchain:nightlycomponents:clippyoverride:true

SeeComponents section for more.

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

Background

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

Found toolchain name will be set as anAction 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 aactions-rs/toolchain Action.

Example workflow

on:[push]name:nightly clippyjobs:lint:runs-on:ubuntu-lateststeps:      -uses:actions/checkout@master      -id:componentuses:actions-rs/components-nightly@v1with:component:clippy      -uses:actions-rs/toolchain@v1with:toolchain:${{ steps.component.outputs.toolchain }}override:true

Seeadditional recipes here.

Inputs

NameRequiredDescriptionTypeDefault
componentComponent name to search forstring
targetRust target triple (seeTarget input section below)stringhost-dependant

Target input

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

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

Outputs

NameDescriptionType
toolchainMost recent nightly toolchain name with the requested component available,ex.nightly-2019-09-13-x86_64-unknown-linux-gnustring
commandCargo command to call this component (might be useful when you need to installrustfmt but call thecargo fmt then)string

About

⚙️ GitHub Action for searching nightly component availability

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    Contributors2

    •  
    •  

    [8]ページ先頭

    ©2009-2025 Movatter.jp