mirror of
https://github.com/actions-rs/cargo.git
synced 2025-11-02 22:01:59 +02:00
Mirror of https://github.com/actions-rs/cargo
| __tests__ | ||
| dist | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| action.yml | ||
| jest.config.js | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Rust cargo Action
This GitHub Action runs specified cargo
command on a Rust language project.
Example workflow
on: [push]
name: CI
jobs:
build_and_test:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/cargo@v1
with:
command: build
toolchain: nightly
arguments: --release --all-features
- uses: actions-rs/cargo@v1
with:
command: test
toolchain: nightly
arguments: --all-targets
Inputs
command(required) - Cargo command to run (ex.checkorbuild)toolchain- Rust toolchain to use (without the+sign, ex.nightly)args- Arguments for the cargo commanduse-cross- Use cross instead of cargo (default:false)