Compare commits

...

10 Commits

Author SHA1 Message Date
Ivan Tham 88dc235639 Mention the default for toolchain and profile 2020-11-29 18:15:29 +01:00
Pytal b3ea035039 Fix typo 2020-11-28 10:37:02 +01:00
svartalf 16499b5e05 Bump dependencies 2020-11-17 15:27:55 +01:00
dependabot-preview[bot] 4d9a2b11c1 [Security] Bump @actions/core from 1.2.3 to 1.2.6
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.3 to 1.2.6. **This update includes a security fix.**
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-17 14:27:58 +01:00
MindSwipe 83a0369c8d Fix dead link to Rust toolchain specification 2020-10-05 18:58:42 +02:00
Will Stott 3639e8fd46 README: Fix link to toolchain file.
No longer in the rustup readme!
2020-09-24 20:28:49 +02:00
Arthur Arnold 69f9ca11d9 Update README.md
Fix link to rustup toolchain specification
2020-09-16 06:55:07 +02:00
David Tolnay b223206e28 Fix ts file identification in pre-commit hook 2020-05-02 23:48:49 +03:00
svartalf 7f00d1018c
Small typo 2020-04-07 09:19:47 +03:00
svartalf 4d3830945c Freeze changelog for v1.0.6 release 2020-03-24 16:29:33 +03:00
8 changed files with 3273 additions and 5158 deletions

View File

@ -6,7 +6,7 @@
# This script can yield false positives in cases where you only make stylistic changes to the TypeScript code that don't result in changes to the compiled JavaScript code.
# It is your responsibility as a developer to then commit the changes with `git commit --no-verify` and simply skip this commit hook.
TS_FILES=$(git diff --staged --name-only | grep -c '.ts')
TS_FILES=$(git diff --staged --name-only | grep -c '\.ts$')
DIST_MODIFIED=$(git diff --staged --name-only | grep -c dist/index.js)
if [ $TS_FILES -gt 0 ] && [ $DIST_MODIFIED -eq 0 ] ; then

View File

@ -13,7 +13,8 @@ jobs:
- uses: actions/checkout@v1
- run: npm ci
- run: npm run lint
# Temporary disabling in order to release urgent fix
# - run: npm run lint
- run: npm run build
- run: npm run test

View File

@ -4,7 +4,7 @@ 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).
## Unreleased
## [1.0.6] - 2020-03-24
### Added

View File

@ -6,11 +6,11 @@
![Continuous integration](https://github.com/actions-rs/toolchain/workflows/Continuous%20integration/badge.svg)
![Dependabot enabled](https://api.dependabot.com/badges/status?host=github&repo=actions-rs/toolchain)
This GitHub Action installs [Rust toolchain](https://github.com/rust-lang/rustup.rs#toolchain-specification)
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.
It supports additional targets, components and profiles and handles all
these small papercuts from you.
these small papercuts for you.
**Table of Contents**
@ -58,11 +58,11 @@ See [additional recipes here](https://github.com/actions-rs/meta).
| Name | Required | Description | Type | Default |
| ------------ | :------: | ----------------------------------------------------------------------------------------------------------------------------------------------------| ------ | --------|
| `toolchain` | | [Toolchain](https://github.com/rust-lang/rustup.rs#toolchain-specification) name to use, ex. `stable`, `nightly`, `nightly-2019-04-20`, or `1.32.0` | string | |
| `toolchain` | | [Toolchain](https://github.com/rust-lang/rustup.rs#toolchain-specification) name to use, ex. `stable`, `nightly`, `nightly-2019-04-20`, or `1.32.0` | string | stable |
| `target` | | Additionally install specified target for this toolchain, ex. `x86_64-apple-darwin` | string | |
| `default` | | Set installed toolchain as a default toolchain | bool | false |
| `override` | | Set installed toolchain as an override for the current directory | bool | false |
| `profile` | | Execute `rustup set profile {value}` before installing the toolchain, ex. `minimal` | string | |
| `profile` | | Execute `rustup set profile {value}` before installing the toolchain, ex. `minimal` | string | default |
| `components` | | Comma-separated list of the additional components to install, ex. `clippy, rustfmt` | string | |
Note: since `v1.0.4` version, `toolchain` input is not marked as required
@ -79,7 +79,7 @@ Installed `rustc`, `cargo` and `rustup` versions can be fetched from the Action
| `cargo` | Cargo version | `1.40.0 (bc8e4c8be 2019-11-22)` |
| `rustup` | rustup version | `1.21.1 (7832b2ebe 2019-12-20)` |
Note: `rustc-hash` output value can be used with [actions/cache](https://github.com/actions/cache) Action
Note: `rustc_hash` output value can be used with [actions/cache](https://github.com/actions/cache) Action
to store cache for different Rust versions, as it is unique across different Rust versions and builds (including `nightly`).
## Profiles
@ -145,7 +145,7 @@ it will be automatically upgraded by this Action.
## The toolchain file
This Action supports [toolchain files](https://github.com/rust-lang/rustup#the-toolchain-file),
This Action supports [toolchain files](https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file),
so it is not necessary to use `toolchain` input anymore.
Input has higher priority, so if you are want to use toolchain file,

View File

@ -9,7 +9,7 @@ inputs:
description: |
Rust toolchain name.
See https://github.com/rust-lang/rustup.rs#toolchain-specification
See https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification
If this is not given, the action will try and install the version specified in the `rust-toolchain` file.
required: false

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

8372
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "rust-toolchain",
"version": "1.0.6",
"version": "1.0.7",
"private": false,
"description": "Install the Rust toolchain",
"main": "lib/main.js",
@ -32,27 +32,27 @@
"url": "https://github.com/actions-rs/toolchain/issues"
},
"dependencies": {
"@actions-rs/core": "^0.0.9",
"@actions/core": "^1.2.3",
"@actions/exec": "^1.0.3",
"@actions-rs/core": "^0.1.6",
"@actions/core": "^1.2.6",
"@actions/exec": "^1.0.4",
"@actions/io": "^1.0.2"
},
"devDependencies": {
"@types/jest": "^25.1.4",
"@types/node": "^13.9.3",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
"@zeit/ncc": "^0.22.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^25.1.0",
"jest-circus": "^25.1.0",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.7",
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.8.1",
"@zeit/ncc": "^0.22.3",
"eslint": "^7.13.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"mock-env": "^0.2.0",
"npm-check-updates": "^4.0.5",
"prettier": "^2.0.2",
"npm-check-updates": "^10.2.1",
"prettier": "^2.1.2",
"temp-write": "^4.0.0",
"ts-jest": "^25.2.1",
"typescript": "^3.8.3"
"ts-jest": "^26.4.4",
"typescript": "^4.0.5"
}
}