mirror of
https://github.com/actions-rs/cargo.git
synced 2025-08-15 05:05:10 +00:00
Replace with ructions
This commit is contained in:
parent
9e120dd99b
commit
42dbaf80f9
2
.npmrc
2
.npmrc
@ -1 +1 @@
|
|||||||
@actions-rs:registry=https://npm.pkg.github.com
|
@ructions:registry=https://npm.pkg.github.com
|
||||||
|
2
LICENSE
2
LICENSE
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2019 actions-rs team and contributors
|
Copyright (c) 2019 ructions team and contributors
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
32
README.md
32
README.md
@ -1,10 +1,10 @@
|
|||||||
# Rust `cargo` Action
|
# Rust `cargo` Action
|
||||||
|
|
||||||
[](https://actions-rs.github.io/#sponsoring)
|
[](https://ructions.github.io/#sponsoring)
|
||||||

|

|
||||||
[](https://gitter.im/actions-rs/community)
|
[](https://gitter.im/ructions/community)
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
This GitHub Action runs specified [`cargo`](https://github.com/rust-lang/cargo)
|
This GitHub Action runs specified [`cargo`](https://github.com/rust-lang/cargo)
|
||||||
command on a Rust language project.
|
command on a Rust language project.
|
||||||
@ -32,16 +32,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: ructions/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: ructions/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release --all-features
|
args: --release --all-features
|
||||||
```
|
```
|
||||||
|
|
||||||
See [additional recipes here](https://github.com/actions-rs/meta).
|
See [additional recipes here](https://github.com/ructions/meta).
|
||||||
|
|
||||||
## Use cases
|
## Use cases
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: ructions/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- run: cargo build --release --all-features
|
- run: cargo build --release --all-features
|
||||||
@ -70,8 +70,8 @@ Why would you want to use this Action instead:
|
|||||||
## Inputs
|
## Inputs
|
||||||
|
|
||||||
| Name | Required | Description | Type | Default |
|
| Name | Required | Description | Type | Default |
|
||||||
| ------------| :------: | -------------------------------------------------------------------------| ------ | --------|
|
| ----------- | :------: | ------------------------------------------------------------------------ | ------ | ------- |
|
||||||
| `command` | ✓ | Cargo command to run, ex. `check` or `build` | string | |
|
| `command` | ✓ | Cargo command to run, ex. `check` or `build` | string | |
|
||||||
| `toolchain` | | Rust toolchain name to use | string | |
|
| `toolchain` | | Rust toolchain name to use | string | |
|
||||||
| `args` | | Arguments for the cargo command | string | |
|
| `args` | | Arguments for the cargo command | string | |
|
||||||
| `use-cross` | | Use [`cross`](https://github.com/rust-embedded/cross) instead of `cargo` | bool | false |
|
| `use-cross` | | Use [`cross`](https://github.com/rust-embedded/cross) instead of `cargo` | bool | false |
|
||||||
@ -81,7 +81,7 @@ Why would you want to use this Action instead:
|
|||||||
By default this Action will call whatever `cargo` binary is available
|
By default this Action will call whatever `cargo` binary is available
|
||||||
in the current [virtual environment](https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions).
|
in the current [virtual environment](https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions).
|
||||||
|
|
||||||
You can use [`actions-rs/toolchain`](https://github.com/actions-rs/toolchain)
|
You can use [`ructions/toolchain`](https://github.com/ructions/toolchain)
|
||||||
to install specific Rust toolchain with `cargo` included.
|
to install specific Rust toolchain with `cargo` included.
|
||||||
|
|
||||||
## Cross-compilation
|
## Cross-compilation
|
||||||
@ -105,12 +105,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: ructions/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
target: armv7-unknown-linux-gnueabihf
|
target: armv7-unknown-linux-gnueabihf
|
||||||
override: true
|
override: true
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: ructions/cargo@v1
|
||||||
with:
|
with:
|
||||||
use-cross: true
|
use-cross: true
|
||||||
command: build
|
command: build
|
||||||
@ -119,14 +119,14 @@ jobs:
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This Action is distributed under the terms of the MIT license, see [LICENSE](https://github.com/actions-rs/toolchain/blob/master/LICENSE) for details.
|
This Action is distributed under the terms of the MIT license, see [LICENSE](https://github.com/ructions/toolchain/blob/master/LICENSE) for details.
|
||||||
|
|
||||||
## Contribute and support
|
## Contribute and support
|
||||||
|
|
||||||
Any contributions are welcomed!
|
Any contributions are welcomed!
|
||||||
|
|
||||||
If you want to report a bug or have a feature request,
|
If you want to report a bug or have a feature request,
|
||||||
check the [Contributing guide](https://github.com/actions-rs/.github/blob/master/CONTRIBUTING.md).
|
check the [Contributing guide](https://github.com/ructions/.github/blob/master/CONTRIBUTING.md).
|
||||||
|
|
||||||
You can also support author by funding the ongoing project work,
|
You can also support author by funding the ongoing project work,
|
||||||
see [Sponsoring](https://actions-rs.github.io/#sponsoring).
|
see [Sponsoring](https://ructions.github.io/#sponsoring).
|
||||||
|
@ -9,7 +9,7 @@ const testEnvVars = {
|
|||||||
INPUT_TOOLCHAIN: "+nightly",
|
INPUT_TOOLCHAIN: "+nightly",
|
||||||
};
|
};
|
||||||
|
|
||||||
describe("actions-rs/cargo/input", () => {
|
describe("ructions/cargo/input", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
for (const key in testEnvVars)
|
for (const key in testEnvVars)
|
||||||
process.env[key] = testEnvVars[key as keyof typeof testEnvVars];
|
process.env[key] = testEnvVars[key as keyof typeof testEnvVars];
|
||||||
|
18
action.yml
18
action.yml
@ -1,23 +1,25 @@
|
|||||||
name: 'rust-cargo'
|
name: "rust-cargo"
|
||||||
description: 'Run cargo command'
|
description: "Run cargo command"
|
||||||
author: 'actions-rs team'
|
author: "ructions team"
|
||||||
branding:
|
branding:
|
||||||
icon: play-circle
|
icon: play-circle
|
||||||
color: black
|
color: "gray-dark"
|
||||||
inputs:
|
inputs:
|
||||||
command:
|
command:
|
||||||
description: Cargo command to run (ex. `check` or `build`)
|
description: Cargo command to run (ex. `check` or `build`)
|
||||||
required: true
|
required: true
|
||||||
toolchain:
|
toolchain:
|
||||||
description: Toolchain to use (without the `+` sign, ex. `nightly`)
|
description: Toolchain to use (without the `+` sign, ex. `nightly`)
|
||||||
|
default: stable
|
||||||
required: false
|
required: false
|
||||||
args:
|
args:
|
||||||
description: Arguments for the cargo command
|
description: Arguments for the cargo command
|
||||||
required: false
|
required: false
|
||||||
use-cross:
|
use_cross:
|
||||||
description: Use cross instead of cargo
|
description: Use cross instead of cargo
|
||||||
default: false
|
default: "false"
|
||||||
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: "node16"
|
||||||
main: 'dist/index.js'
|
main: "dist/index.js"
|
||||||
|
33923
package-lock.json
generated
33923
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -18,28 +18,29 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/actions-rs/cargo.git"
|
"url": "git+https://github.com/ructions/cargo.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"actions",
|
"actions",
|
||||||
"rust",
|
"rust",
|
||||||
"cargo"
|
"cargo"
|
||||||
],
|
],
|
||||||
"author": "actions-rs",
|
"author": "ructions",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions-rs/cargo/issues"
|
"url": "https://github.com/ructions/cargo/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions-rs/core": "0.1.3",
|
"@actions/cache": "^1.0.9",
|
||||||
"@actions/core": "^1.2.4",
|
"@actions/core": "^1.2.4",
|
||||||
|
"@actions/exec": "^1.1.0",
|
||||||
"string-argv": "^0.3.1"
|
"string-argv": "^0.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^26.0.23",
|
"@types/jest": "^26.0.23",
|
||||||
"@types/node": "^15.6.1",
|
"@types/node": "^15.6.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.0.0",
|
"@typescript-eslint/eslint-plugin": "^5.12.0",
|
||||||
"@typescript-eslint/parser": "^3.10.1",
|
"@typescript-eslint/parser": "^5.12.0",
|
||||||
"@zeit/ncc": "^0.22.3",
|
"@zeit/ncc": "^0.22.3",
|
||||||
"eslint": "^7.29.0",
|
"eslint": "^7.29.0",
|
||||||
"eslint-config-prettier": "^7.2.0",
|
"eslint-config-prettier": "^7.2.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user