0
0
Fork 0
mirror of https://github.com/actions-rs/cargo.git synced 2025-05-04 01:29:21 +03:00

Replace with ructions

This commit is contained in:
MikuroXina 2022-02-20 22:09:07 +09:00
parent 9e120dd99b
commit 42dbaf80f9
No known key found for this signature in database
GPG key ID: C8F29756BC44FE0A
7 changed files with 20308 additions and 13686 deletions

2
.npmrc
View file

@ -1 +1 @@
@actions-rs:registry=https://npm.pkg.github.com
@ructions:registry=https://npm.pkg.github.com

View file

@ -1,7 +1,7 @@
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
of this software and associated documentation files (the "Software"), to deal

View file

@ -1,10 +1,10 @@
# Rust `cargo` Action
[![Sponsoring](https://img.shields.io/badge/Support%20it-Say%20%22Thank%20you!%22-blue)](https://actions-rs.github.io/#sponsoring)
[![Sponsoring](https://img.shields.io/badge/Support%20it-Say%20%22Thank%20you!%22-blue)](https://ructions.github.io/#sponsoring)
![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)
[![Gitter](https://badges.gitter.im/actions-rs/community.svg)](https://gitter.im/actions-rs/community)
![Continuous integration](https://github.com/actions-rs/cargo/workflows/Continuous%20integration/badge.svg)
![Dependabot enabled](https://api.dependabot.com/badges/status?host=github&repo=actions-rs/toolchain)
[![Gitter](https://badges.gitter.im/ructions/community.svg)](https://gitter.im/ructions/community)
![Continuous integration](https://github.com/ructions/cargo/workflows/Continuous%20integration/badge.svg)
![Dependabot enabled](https://api.dependabot.com/badges/status?host=github&repo=ructions/toolchain)
This GitHub Action runs specified [`cargo`](https://github.com/rust-lang/cargo)
command on a Rust language project.
@ -32,16 +32,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: ructions/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
- uses: ructions/cargo@v1
with:
command: build
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
@ -56,7 +56,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: ructions/toolchain@v1
with:
toolchain: stable
- run: cargo build --release --all-features
@ -70,10 +70,10 @@ Why would you want to use this Action instead:
## Inputs
| 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 | |
| `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 |
## Toolchain
@ -81,7 +81,7 @@ Why would you want to use this Action instead:
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).
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.
## Cross-compilation
@ -105,12 +105,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: ructions/toolchain@v1
with:
toolchain: stable
target: armv7-unknown-linux-gnueabihf
override: true
- uses: actions-rs/cargo@v1
- uses: ructions/cargo@v1
with:
use-cross: true
command: build
@ -119,14 +119,14 @@ jobs:
## 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
Any contributions are welcomed!
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,
see [Sponsoring](https://actions-rs.github.io/#sponsoring).
see [Sponsoring](https://ructions.github.io/#sponsoring).

View file

@ -9,7 +9,7 @@ const testEnvVars = {
INPUT_TOOLCHAIN: "+nightly",
};
describe("actions-rs/cargo/input", () => {
describe("ructions/cargo/input", () => {
beforeEach(() => {
for (const key in testEnvVars)
process.env[key] = testEnvVars[key as keyof typeof testEnvVars];

View file

@ -1,23 +1,25 @@
name: 'rust-cargo'
description: 'Run cargo command'
author: 'actions-rs team'
name: "rust-cargo"
description: "Run cargo command"
author: "ructions team"
branding:
icon: play-circle
color: black
color: "gray-dark"
inputs:
command:
description: Cargo command to run (ex. `check` or `build`)
required: true
toolchain:
description: Toolchain to use (without the `+` sign, ex. `nightly`)
default: stable
required: false
args:
description: Arguments for the cargo command
required: false
use-cross:
use_cross:
description: Use cross instead of cargo
default: false
default: "false"
required: false
runs:
using: 'node12'
main: 'dist/index.js'
using: "node16"
main: "dist/index.js"

33923
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -18,28 +18,29 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/actions-rs/cargo.git"
"url": "git+https://github.com/ructions/cargo.git"
},
"keywords": [
"actions",
"rust",
"cargo"
],
"author": "actions-rs",
"author": "ructions",
"license": "MIT",
"bugs": {
"url": "https://github.com/actions-rs/cargo/issues"
"url": "https://github.com/ructions/cargo/issues"
},
"dependencies": {
"@actions-rs/core": "0.1.3",
"@actions/cache": "^1.0.9",
"@actions/core": "^1.2.4",
"@actions/exec": "^1.1.0",
"string-argv": "^0.3.1"
},
"devDependencies": {
"@types/jest": "^26.0.23",
"@types/node": "^15.6.1",
"@typescript-eslint/eslint-plugin": "^4.0.0",
"@typescript-eslint/parser": "^3.10.1",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"@zeit/ncc": "^0.22.3",
"eslint": "^7.29.0",
"eslint-config-prettier": "^7.2.0",