Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: 调试 github actions
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <ydrml@hotmail.com>
YdrMaster committed Mar 12, 2024
1 parent 5339129 commit d1d4136
Showing 3 changed files with 15 additions and 19 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -35,18 +35,18 @@ jobs:
- name: Run test
run: cargo test

- name: Install required cargo
run: cargo install clippy-sarif sarif-fmt

- name: Run rust-clippy
run:
cargo clippy
--all-features
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
# - name: Install required cargo
# run: cargo install clippy-sarif sarif-fmt

# - name: Run rust-clippy
# run:
# cargo clippy
# --all-features
# --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
# continue-on-error: true

# - name: Upload analysis results to GitHub
# uses: github/codeql-action/upload-sarif@v3
# with:
# sarif_file: rust-clippy-results.sarif
# wait-for-processing: true
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions xtask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -13,8 +13,6 @@ tokenizer = { path = "../tokenizer" }
transformer = { path = "../transformer" }
transformer-nvidia = { path = "../transformer-nvidia" }
service = { path = "../service" }
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
log.workspace = true
simple_logger = "4.3"
clap = { version = "4.5", features = ["derive"] }

0 comments on commit d1d4136

Please sign in to comment.