Skip to content

Commit

Permalink
Merge pull request #12 from Alignof/develop
Browse files Browse the repository at this point in the history
Fix github actions
  • Loading branch information
Alignof committed Jul 13, 2024
2 parents 549fe07 + c461ce0 commit f2fe876
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,30 @@ on:
push:
branches:
- master
pull_request:

env:
CARGO_INCREMENTAL: 0
pull_request: null

jobs:
rust:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@v1
- name: install clippy
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable #(Rustup toolchain specifier e.g. stable, nightly, 1.42.0, nightly-2022-01-01. )
#target: (Comma-separated string of additional targets to install e.g. wasm32-unknown-unknown)
components: clippy, rustfmt
components: clippy

- name: cache dependencies
uses: Swatinem/rust-cache@v2.4.0
- uses: sksat/action-clippy@v1.0.0
if: github.event_name == 'push'
with:
reporter: github-check

- name: reviewdog / clippy
uses: sksat/action-clippy@v0.2.1
- uses: sksat/action-clippy@v1.0.0
if: github.event_name == 'pull_request'
with:
reporter: github-pr-review
clippy_flags: --all-features

- name: format check
- name: format check
run: cargo fmt --all -- --check

- name: unit test
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.4"
edition = "2021"
authors = ["Norimasa Takana <alignof@outlook.com>"]
repository = "https://github.com/Alignof/raki"
keywords = ["risc-v", "docoder"]
keywords = ["risc-v", "decoder"]
description = "RISC-V instruction decoder written in Rust."
license = "MIT"

Expand Down

0 comments on commit f2fe876

Please sign in to comment.