Action for Rust Project #144566
Answered
by
mateusfigmelo
silver-coding-blockchain
asked this question in
Actions
-
Select Topic AreaQuestion BodyI am cooking a project with rust and new in Github Actions. |
Beta Was this translation helpful? Give feedback.
Answered by
mateusfigmelo
Nov 14, 2024
Replies: 2 comments 3 replies
-
You can do that by below steps.
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
``` |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
silver-coding-blockchain
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do that by below steps.
simple.yml
in.github/workflows
.