All Projects â†’ actions-rs â†’ Cargo

actions-rs / Cargo

Licence: mit
đŸ“Ļ GitHub Action for Rust `cargo` command

Programming Languages

typescript
32286 projects
rust
11053 projects

Projects that are alternatives of or similar to Cargo

dcos-k8s-rust-skaffold-demo
A demo of pipelining Rust application development to Kubernetes on DC/OS with Skaffold.
Stars: ✭ 40 (-85.02%)
Mutual labels:  cargo
rhack
Temporary edit external crates that your project depends on
Stars: ✭ 104 (-61.05%)
Mutual labels:  cargo
broom
A disk cleaning utility for developers.
Stars: ✭ 38 (-85.77%)
Mutual labels:  cargo
packagehub
An extension for displaying dependencies of projects on GitHub
Stars: ✭ 71 (-73.41%)
Mutual labels:  cargo
project
☕ī¸ Create node, rust, python or ruby project locally and on github (private or public)
Stars: ✭ 19 (-92.88%)
Mutual labels:  cargo
cargo-llvm-cov
Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).
Stars: ✭ 181 (-32.21%)
Mutual labels:  cargo
cargo-deny-action
❌ GitHub Action for cargo-deny đŸĻ€
Stars: ✭ 45 (-83.15%)
Mutual labels:  cargo
blackjack
Build cargo dependencies with Bazel
Stars: ✭ 34 (-87.27%)
Mutual labels:  cargo
nixcrates
DEPRECATED reads rust-lang/crates.io-index and outputs nix expressions into fractalide/nix-crates-index
Stars: ✭ 14 (-94.76%)
Mutual labels:  cargo
crm
Cargo registry manager (Cargo æŗ¨å†ŒčĄ¨įŽĄį†å™¨)īŧŒį”¨äēŽæ–šäžŋįš„įŽĄį†å’Œæ›´æĸ Rust å›Ŋ内镜像æē
Stars: ✭ 103 (-61.42%)
Mutual labels:  cargo
cargo-clone
A cargo subcommand to fetch the source code of a Rust crate
Stars: ✭ 72 (-73.03%)
Mutual labels:  cargo
fe
A super-fast and easy to use command line fuzzy file searcher built with the rust programming language.
Stars: ✭ 23 (-91.39%)
Mutual labels:  cargo
panamax
Mirror rustup and crates.io repositories, for offline Rust and cargo usage.
Stars: ✭ 119 (-55.43%)
Mutual labels:  cargo
build-rust
Script helper for building rustc and cargo from source on OpenBSD (without rustup)
Stars: ✭ 33 (-87.64%)
Mutual labels:  cargo
rustsec
Audit Cargo.lock files for dependencies with security vulnerabilities
Stars: ✭ 956 (+258.05%)
Mutual labels:  cargo
cargo-esr
Extended Search & Ranking tool for crates.
Stars: ✭ 23 (-91.39%)
Mutual labels:  cargo
vcpkg-rs
Build library for finding native libraries in vcpkg for Rust - Windows (msvc), Linux and macOS
Stars: ✭ 68 (-74.53%)
Mutual labels:  cargo
Wargo
Easy Rust to WebAssembly
Stars: ✭ 260 (-2.62%)
Mutual labels:  cargo
cargo-wix
A cargo subcommand to build Windows installers for rust projects using the WiX Toolset
Stars: ✭ 142 (-46.82%)
Mutual labels:  cargo
glitter
🌌⭐ Git tooling of the future.
Stars: ✭ 150 (-43.82%)
Mutual labels:  cargo

Rust cargo Action

Sponsoring MIT licensed Gitter Continuous integration Dependabot enabled

This GitHub Action runs specified cargo command on a Rust language project.

Table of Contents

Example workflow

on: [push]

name: CI

jobs:
  build_and_test:
    name: Rust project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: actions-rs/[email protected]
        with:
          toolchain: stable
      - uses: actions-rs/[email protected]
        with:
          command: build
          args: --release --all-features

See additional recipes here.

Use cases

Note that this Action is not required usually and you can just use run step instead as in example below:

jobs:
  build_and_test:
    name: Rust project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: actions-rs/[email protected]
        with:
          toolchain: stable
      - run: cargo build --release --all-features

Why would you want to use this Action instead:

  1. Transparent cross installation and execution with use-cross: true input enabled
  2. Warnings and errors issued by cargo will be displayed in GitHub UI

Inputs

Name Required Description Type Default
command ✓ Cargo command to run, ex. check or build string
toolchain Rust toolchain name to use string
args Arguments for the cargo command string
use-cross Use cross instead of cargo bool false

Toolchain

By default this Action will call whatever cargo binary is available in the current virtual environment.

You can use actions-rs/toolchain to install specific Rust toolchain with cargo included.

Cross-compilation

In order to make cross-compile an easy process, this Action can install cross tool on demand if use-cross input is enabled; cross executable will be invoked then instead of cargo automatically.

All consequent calls of this Action in the same job with use-cross: true input enabled will use the same cross installed.

on: [push]

name: ARMv7 build

jobs:
  linux_arm7:
    name: Linux ARMv7
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: actions-rs/[email protected]
        with:
          toolchain: stable
          target: armv7-unknown-linux-gnueabihf
          override: true
      - uses: actions-rs/[email protected]
        with:
          use-cross: true
          command: build
          args: --target armv7-unknown-linux-gnueabihf

License

This Action is distributed under the terms of the MIT license, see 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.

You can also support author by funding the ongoing project work, see Sponsoring.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].