|
17 | 17 | CARGO_TERM_COLOR: always
|
18 | 18 | CARGO_INCREMENTAL: '0'
|
19 | 19 | CARGO_PROFILE_DEV_DEBUG: '0'
|
20 |
| - RUST_TOOLCHAIN_VERSION: "1.84.1" |
| 20 | + RUST_TOOLCHAIN_VERSION: "1.85.0" |
21 | 21 | RUSTFLAGS: "-D warnings"
|
22 | 22 | RUSTDOCFLAGS: "-D warnings"
|
23 | 23 | RUST_LOG: "info"
|
|
64 | 64 | with:
|
65 | 65 | command: check ${{ matrix.checks }}
|
66 | 66 |
|
67 |
| - run_rustfmt: |
68 |
| - name: Run Rustfmt |
69 |
| - runs-on: ubuntu-latest |
70 |
| - steps: |
71 |
| - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
72 |
| - with: |
73 |
| - persist-credentials: false |
74 |
| - - uses: dtolnay/rust-toolchain@master |
75 |
| - with: |
76 |
| - toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} |
77 |
| - components: rustfmt |
78 |
| - - uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7 |
79 |
| - with: |
80 |
| - key: fmt |
81 |
| - - run: cargo fmt --all -- --check |
82 |
| - |
83 |
| - run_clippy: |
84 |
| - name: Run Clippy |
85 |
| - runs-on: ubuntu-latest |
86 |
| - steps: |
87 |
| - - name: Install host dependencies |
88 |
| - run: | |
89 |
| - sudo apt-get update |
90 |
| - sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config |
91 |
| - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
92 |
| - with: |
93 |
| - persist-credentials: false |
94 |
| - submodules: recursive |
95 |
| - - uses: dtolnay/rust-toolchain@master |
96 |
| - with: |
97 |
| - toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} |
98 |
| - components: clippy |
99 |
| - - uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7 |
100 |
| - with: |
101 |
| - key: clippy |
102 |
| - - name: Run clippy action to produce annotations |
103 |
| - # NOTE (@Techassi): This action might get a new release sonn, because it |
104 |
| - # currently uses Node 16, which is deprecated in the next few months by |
105 |
| - # GitHub. See https://github.com/giraffate/clippy-action/pull/87 |
106 |
| - uses: giraffate/clippy-action@13b9d32482f25d29ead141b79e7e04e7900281e0 # v1.0.1 |
107 |
| - env: |
108 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
109 |
| - if: env.GITHUB_TOKEN != null && github.event.pull_request.draft == false |
110 |
| - with: |
111 |
| - clippy_flags: --all-targets -- -D warnings |
112 |
| - reporter: 'github-pr-review' |
113 |
| - github_token: ${{ secrets.GITHUB_TOKEN }} |
114 |
| - - name: Run clippy manually without annotations |
115 |
| - env: |
116 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
117 |
| - if: env.GITHUB_TOKEN == null |
118 |
| - run: cargo clippy --color never -q --all-targets -- -D warnings |
119 |
| - |
120 | 67 | run_rustdoc:
|
121 | 68 | name: Run RustDoc
|
122 | 69 | runs-on: ubuntu-latest
|
|
136 | 83 | run_tests:
|
137 | 84 | name: Run Cargo Tests
|
138 | 85 | needs:
|
139 |
| - - run_clippy |
140 |
| - - run_rustfmt |
141 | 86 | - run_rustdoc
|
142 | 87 | runs-on: ubuntu-latest
|
143 | 88 | steps:
|
|
0 commit comments