Skip to content

Action for Rust Project #144566

Discussion options

You must be logged in to vote

You can do that by below steps.

  • Create simple.yml in .github/workflows.
  • Add simple ci actions for formatting, lint and building check.
name: Check Format, Lint and Build

on:
  push:
    branches: ["main"]
  pull_request:
    branches: ["main"]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Check Format
        run: cargo fmt --all --check
      - name: Lint
        run: cargo clippy --all-targets
      - name: Build
        run: cargo build --all-targets
       ```

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@silver-coding-blockchain
Comment options

@mateusfigmelo
Comment options

@silver-coding-blockchain
Comment options

Answer selected by silver-coding-blockchain
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
3 participants