Skip to content

Commit

Permalink
Fix minor things (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
placintaalexandru authored Nov 4, 2023
1 parent 4e86536 commit 9e0dd82
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@actions-rs:registry=https://npm.pkg.github.com
@placintaalexandru:registry=https://npm.pkg.github.com
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.7] - 2020-03-24

### Added

- Input parameter: `force` that has the same effect as `rustup toolchain install
<TOOLCHAIN> --force`

### Changed

- Input parameter name: `target` -> `targets` that allow to specify a
comma-separated list of targets to be added

## [1.0.6] - 2020-03-24

### Added
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

The MIT License (MIT)

Copyright (c) 2019 actions-rs team and contributors
Copyright (c) 2019 placintaalexandru team and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
32 changes: 17 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
# `rust-toolchain` Action
# GitHub Action - `rust-toolchain-reborn`

![GitHub](https://img.shields.io/github/license/placintaalexandru/toolchain)
![GitHub](https://img.shields.io/github/license/placintaalexandru/toolchain?label=License&color=blue&logo=gitbook)
![Continuous integration](https://github.com/placintaalexandru/toolchain/workflows/Continuous%20integration/badge.svg)
![CodeQL](https://github.com/placintaalexandru/toolchain/workflows/CodeQL/badge.svg)
![Dependabot enabled](https://img.shields.io/badge/Dependabot-Enabled-brightgreen)
![Codecov](https://img.shields.io/codecov/c/github/placintaalexandru/toolchain)
![GitHub issues](https://img.shields.io/github/issues-raw/placintaalexandru/toolchain)
![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/placintaalexandru/toolchain)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/placintaalexandru/toolchain/main)
![GitHub release (with filter)](https://img.shields.io/github/v/release/placintaalexandru/toolchain)
![Dependabot enabled](https://img.shields.io/badge/Dependabot-Enabled-brightgreen?logo=dependabot)
![GitHub contributors](https://img.shields.io/github/contributors/placintaalexandru/toolchain?logo=github&label=Contributors)
[![Codecov](https://img.shields.io/codecov/c/github/placintaalexandru/toolchain?logo=codecov&label=Coverage)](https://app.codecov.io/gh/placintaalexandru/toolchain)
![GitHub release (with filter)](https://img.shields.io/github/v/release/placintaalexandru/toolchain?logo=github&label=Release&color=brightgreen)
![GitHub issues](https://img.shields.io/github/issues-raw/placintaalexandru/toolchain?label=Open%20Issues&logo=github&color=blue)
![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/placintaalexandru/toolchain?label=Closed%20Issues&logo=github&color=blue)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/placintaalexandru/toolchain/main?label=Last%20Commit&logo=github&color=blue)
[![Public workflows that use this action](https://img.shields.io/endpoint?label=Used%20By&url=https%3A%2F%2Fused-by.vercel.app%2Fapi%2Fgithub-actions%2Fused-by%3Faction%3Dplacintaalexandru%2Ftoolchain%26badge%3Dtrue)](https://sourcegraph.com/search?q=context:global+placintaalexandru/toolchain+file:.github/workflows&patternType=literal)
[![GitHub Marketplace](https://img.shields.io/badge/Marketplace-rust--toolchain--reborn-b7410e?logo=github)](https://github.com/marketplace/actions/rust-toolchain-reborn)


This GitHub Action installs [Rust toolchain](https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification)
with [rustup](https://github.com/rust-lang/rustup) help.
This GitHub Action installs
[Rust toolchain](https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification)
with the help of [rustup](https://github.com/rust-lang/rustup).

It supports additional targets, components, and profiles and handles all
these small papercuts for you.
It supports additional targets, components, profiles and handles all these small
paper cuts for you.

**Table of Contents**
## Table of Contents

* [Example workflow](#example-workflow)
* [Inputs](#inputs)
Expand Down Expand Up @@ -54,8 +58,6 @@ jobs:
run: cargo check
```
See [additional recipes here](https://github.com/placintaalexandru/meta).
## Inputs
| Name | Required | Description | Type | Default |
Expand Down
15 changes: 7 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: 'rust-toolchain'
name: 'rust-toolchain-reborn'
description: 'Install the Rust toolchain'
author: 'actions-rs team'
author: 'placintaalexandru team'
branding:
icon: play-circle
color: black
icon: activity
color: orange
inputs:
toolchain:
description: Rust toolchain name.
default: stable
required: false
profile:
description: Name of the group of components to be installed for a new toolchain
required: false
default: default
components:
description: Comma-separated list of components to be additionally installed for a new toolchain
required: false
Expand All @@ -24,11 +23,12 @@ inputs:
default: "false"
override:
description: Set installed toolchain as an override for a directory
required: false
default: "false"
force:
description: Force an update, even if some components are missing
required: false
default: "true"
default: "false"
outputs:
rustc:
description: Installed Rustc version
Expand All @@ -38,7 +38,6 @@ outputs:
description: Installed Cargo version
rustup:
description: Installed rustup version

runs:
using: node20
main: dist/index.js
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"rustup",
"toolchain"
],
"author": "actions-rs",
"author": "placintaalexandru",
"license": "MIT",
"bugs": {
"url": "https://github.com/placintaalexandru/rust-core/issues"
"url": "https://github.com/placintaalexandru/toolchain/issues"
},
"dependencies": {
"@actions/core": "^1.2.6",
Expand Down

0 comments on commit 9e0dd82

Please sign in to comment.