@@ -30,7 +30,7 @@ concurrency:
3030 cancel-in-progress : true
3131
3232env :
33- rust_msrv : " 1.85.0 "
33+ rust_msrv : " 1.87 "
3434
3535jobs :
3636 check :
@@ -41,21 +41,22 @@ jobs:
4141 - ubuntu-latest
4242 - macos-latest
4343 steps :
44- - uses : actions/checkout@v4
44+ - uses : actions/checkout@v5
4545
4646 - name : Setup Rust toolchain
4747 uses : ./.github/actions/setup-builder
4848
4949 - name : Check License Header
5050 uses :
apache/skywalking-eyes/[email protected] 5151
52- - name : Install taplo-cli
53- uses : taiki-e/install-action@v2
54- with :
55- 5652 - name : Check toml format
5753 run : make check-toml
5854
55+ - name : Install protoc
56+ uses : arduino/setup-protoc@v3
57+ with :
58+ repo-token : ${{ secrets.GITHUB_TOKEN }}
59+
5960 - name : Cargo format
6061 run : make check-fmt
6162
6566 - name : Cargo clippy
6667 run : make check-clippy
6768
68- - name : Install cargo-machete
69- uses : taiki-e/install-action@v2
70- with :
71- tool : cargo-machete
7269 - name : Cargo Machete
73- run : cargo machete
70+ run : make cargo- machete
7471
7572 build :
7673 runs-on : ${{ matrix.os }}
@@ -81,14 +78,19 @@ jobs:
8178 - macos-latest
8279 - windows-latest
8380 steps :
84- - uses : actions/checkout@v4
81+ - uses : actions/checkout@v5
8582
8683 - name : Setup Rust toolchain
8784 uses : ./.github/actions/setup-builder
8885
8986 - name : Cache Rust artifacts
9087 uses : Swatinem/rust-cache@v2
9188
89+ - name : Install protoc
90+ uses : arduino/setup-protoc@v3
91+ with :
92+ repo-token : ${{ secrets.GITHUB_TOKEN }}
93+
9294 - name : Build
9395 run : make build
9496
@@ -101,7 +103,7 @@ jobs:
101103 - macos-latest
102104 - windows-latest
103105 steps :
104- - uses : actions/checkout@v4
106+ - uses : actions/checkout@v5
105107
106108 - name : Setup Rust toolchain
107109 uses : ./.github/actions/setup-builder
@@ -126,19 +128,24 @@ jobs:
126128 root-reserve-mb : 10240
127129 temp-reserve-mb : 10240
128130
129- - uses : actions/checkout@v4
131+ - uses : actions/checkout@v5
130132
131133 - name : Setup Rust toolchain
132134 uses : ./.github/actions/setup-builder
133135
136+ - name : Install protoc
137+ uses : arduino/setup-protoc@v3
138+ with :
139+ repo-token : ${{ secrets.GITHUB_TOKEN }}
140+
134141 - name : Cache Rust artifacts
135142 uses : Swatinem/rust-cache@v2
136143
137144 - name : Test
138145 run : cargo test --no-fail-fast --all-targets --all-features --workspace
139146
140- - name : Async-std Test
141- run : cargo test --no-fail-fast --all-targets --no-default-features --features "async-std " --features "storage-all" --workspace
147+ - name : Smol Test
148+ run : cargo test --no-fail-fast --all-targets --no-default-features --features "smol " --features "storage-all" --workspace
142149
143150 - name : Doc Test
144151 run : cargo test --no-fail-fast --doc --all-features --workspace
@@ -147,12 +154,16 @@ jobs:
147154 name : Verify MSRV
148155 runs-on : ubuntu-latest
149156 steps :
150- - uses : actions/checkout@v4
157+ - uses : actions/checkout@v5
151158 - name : Setup Nightly Rust toolchain
152159 uses : ./.github/actions/setup-builder
160+ - name : Install protoc
161+ uses : arduino/setup-protoc@v3
162+ with :
163+ repo-token : ${{ secrets.GITHUB_TOKEN }}
153164 - name : Generate minimal versions lockfile
154165 run : |
155- cargo generate-lockfile -Z direct-minimal-versions -Z minimal-versions
166+ cargo generate-lockfile -Z direct-minimal-versions
156167 - name : Setup MSRV Rust toolchain
157168 uses : ./.github/actions/setup-builder
158169 with :
0 commit comments