Skip to content

Commit

Permalink
Disable clippy CI job.
Browse files Browse the repository at this point in the history
Due to clap-rs/clap#4733 not fully fixed.
  • Loading branch information
azriel91 committed Feb 28, 2023
1 parent 9102e7d commit abd2d66
Showing 1 changed file with 50 additions and 47 deletions.
97 changes: 50 additions & 47 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,53 +85,56 @@ jobs:
command: doc
args: --no-deps

clippy:
name: Clippy
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
with:
profile: minimal
toolchain: nightly
override: true
components: clippy

- name: 'Run clippy'
run: |
cargo clippy \
--workspace \
--all-features \
--fix \
--exclude peace_rt_model_web \
-- -D warnings
# Ideally we'd also run it for WASM, but:
#
# * `workspace_tests` is only coded for native targets.
# * There is little benefit running it for everything again.
#
# The command that we *would* use is:
#
# ```bash
# cargo clippy \
# --workspace \
# --target wasm32-unknown-unknown \
# --no-default-features \
# --features "error_reporting output_colorized output_json" \
# --fix \
# --exclude peace_rt_model_native \
# --exclude peace_item_spec_sh_cmd \
# --exclude peace_item_spec_sh_sync_cmd \
# --exclude peace_item_spec_tar_x \
# --exclude peace_item_specs \
# --exclude workspace_tests \
# --exclude app_cycle \
# --exclude download \
# -- -D warnings
# ```
# Disabled due to:
# <https://github.com/clap-rs/clap/issues/4733>
#
# clippy:
# name: Clippy
# runs-on: ubuntu-latest
# timeout-minutes: 10
# steps:
# - uses: actions/checkout@v3
# - # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
# uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
# with:
# profile: minimal
# toolchain: nightly
# override: true
# components: clippy
#
# - name: 'Run clippy'
# run: |
# cargo clippy \
# --workspace \
# --all-features \
# --fix \
# --exclude peace_rt_model_web \
# -- -D warnings
#
# # Ideally we'd also run it for WASM, but:
# #
# # * `workspace_tests` is only coded for native targets.
# # * There is little benefit running it for everything again.
# #
# # The command that we *would* use is:
# #
# # ```bash
# # cargo clippy \
# # --workspace \
# # --target wasm32-unknown-unknown \
# # --no-default-features \
# # --features "error_reporting output_colorized output_json" \
# # --fix \
# # --exclude peace_rt_model_native \
# # --exclude peace_item_spec_sh_cmd \
# # --exclude peace_item_spec_sh_sync_cmd \
# # --exclude peace_item_spec_tar_x \
# # --exclude peace_item_specs \
# # --exclude workspace_tests \
# # --exclude app_cycle \
# # --exclude download \
# # -- -D warnings
# # ```

coverage:
name: Coverage
Expand Down

0 comments on commit abd2d66

Please sign in to comment.