Merge pull request #67 from nhudson/renovate/rust-1.x #200
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rust build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
format-lint: | |
name: Format and Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Rust fmt and clippy | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
build-test: | |
name: Build and Test x86_64 | |
needs: format-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Rust Build x86_64 | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: -- --ignored --nocapture |