Go to file
svartalf 7562f78615 Initial commit 2019-09-12 23:48:44 +03:00
__tests__ Initial commit 2019-09-12 23:48:44 +03:00
dist Initial commit 2019-09-12 23:48:44 +03:00
src Initial commit 2019-09-12 23:48:44 +03:00
.editorconfig Initial commit 2019-09-12 23:48:44 +03:00
.gitignore Initial commit 2019-09-12 23:48:44 +03:00
LICENSE Initial commit 2019-09-12 23:48:44 +03:00
README.md Initial commit 2019-09-12 23:48:44 +03:00
action.yml Initial commit 2019-09-12 23:48:44 +03:00
jest.config.js Initial commit 2019-09-12 23:48:44 +03:00
package-lock.json Initial commit 2019-09-12 23:48:44 +03:00
package.json Initial commit 2019-09-12 23:48:44 +03:00
tsconfig.json Initial commit 2019-09-12 23:48:44 +03:00

README.md

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. check or build)
  • toolchain - Rust toolchain to use (without the + sign, ex. nightly)
  • args - Arguments for the cargo command
  • use-cross - Use cross instead of cargo (default: false)