2222    branches :
2323      - main 
2424  pull_request :
25-     branches :
26-       - main 
25+     paths :
26+       - ' **' #  Include all files and directories in the repository by default.
27+       - ' !.github/ISSUE_TEMPLATE/**' #  Exclude files and directories that don't impact tests or code like templates, metadata, and documentation.
28+       - ' !scripts/**' 
29+       - ' !website/**' 
30+       - ' !.asf.yml' 
31+       - ' !.gitattributes' 
32+       - ' !.gitignore' 
33+       - ' !CONTRIBUTING.md' 
34+       - ' !CHANGELOG.md' 
35+       - ' !LICENSE' 
36+       - ' !NOTICE' 
37+       - ' !README.md' 
2738
2839concurrency :
2940  group : ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} 
3041  cancel-in-progress : true 
3142
3243env :
33-   rust_msrv : " 1.85.0 " 
44+   rust_msrv : " 1.87 " 
3445
3546jobs :
3647  check :
@@ -49,13 +60,14 @@ jobs:
4960      - name : Check License Header 
5061        uses : 
apache/skywalking-eyes/[email protected]   5162
52-       - name : Install taplo-cli 
53-         uses : taiki-e/install-action@v2 
54-         with :
55- 5663      - name : Check toml format 
5764        run : make check-toml 
5865
66+       - name : Install protoc 
67+         uses : arduino/setup-protoc@v3 
68+         with :
69+           repo-token : ${{ secrets.GITHUB_TOKEN }} 
70+ 
5971      - name : Cargo format 
6072        run : make check-fmt 
6173
6577      - name : Cargo clippy 
6678        run : make check-clippy 
6779
68-       - name : Install cargo-machete 
69-         uses : taiki-e/install-action@v2 
70-         with :
71-           tool : cargo-machete 
7280      - name : Cargo Machete 
73-         run : cargo  machete
81+         run : make cargo- machete
7482
7583  build :
7684    runs-on : ${{ matrix.os }} 
8997      - name : Cache Rust artifacts 
9098        uses : Swatinem/rust-cache@v2 
9199
100+       - name : Install protoc 
101+         uses : arduino/setup-protoc@v3 
102+         with :
103+           repo-token : ${{ secrets.GITHUB_TOKEN }} 
104+ 
92105      - name : Build 
93106        run : make build 
94107
@@ -131,6 +144,11 @@ jobs:
131144      - name : Setup Rust toolchain 
132145        uses : ./.github/actions/setup-builder 
133146
147+       - name : Install protoc 
148+         uses : arduino/setup-protoc@v3 
149+         with :
150+           repo-token : ${{ secrets.GITHUB_TOKEN }} 
151+ 
134152      - name : Cache Rust artifacts 
135153        uses : Swatinem/rust-cache@v2 
136154
@@ -148,15 +166,15 @@ jobs:
148166    runs-on : ubuntu-latest 
149167    steps :
150168      - uses : actions/checkout@v5 
151-       - name : Setup Nightly Rust toolchain 
152-         uses : ./.github/actions/setup-builder 
153-       - name : Generate minimal versions lockfile 
154-         run : | 
155-           cargo generate-lockfile -Z direct-minimal-versions -Z minimal-versions 
169+       - name : Install protoc 
170+         uses : arduino/setup-protoc@v3 
171+         with :
172+           repo-token : ${{ secrets.GITHUB_TOKEN }} 
156173      - name : Setup MSRV Rust toolchain 
157174        uses : ./.github/actions/setup-builder 
158175        with :
159176          rust-version : ${{ env.rust_msrv }} 
177+       - name : Setup Nightly Rust toolchain 
178+         uses : ./.github/actions/setup-builder 
160179      - name : Check MSRV 
161-         run : | 
162-           cargo +${{ env.rust_msrv }} check --locked --workspace 
180+         run : make check-msrv 
0 commit comments