@@ -109,11 +109,41 @@ jobs:
109109
110110 # ---------------------------------------------------------------------------
111111
112+ no-codegen-changes :
113+ name : Check if running codegen would produce any changes
114+ runs-on : ubuntu-latest-16-cores
115+ container :
116+ image : rerunio/ci_docker:0.10.0
117+ env :
118+ RUSTC_WRAPPER : " sccache"
119+ steps :
120+ # Note: We explicitly don't override `ref` here. We need to see if changes would be made
121+ # in a context where we have merged with main. Otherwise we might miss changes such as one
122+ # PR introduces a new type and another PR changes the codegen.
123+ - uses : actions/checkout@v4
124+
125+ - name : Set up Rust
126+ uses : ./.github/actions/setup-rust
127+ with :
128+ cache_key : " build-linux"
129+ save_cache : true
130+ workload_identity_provider : ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
131+ service_account : ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
132+
133+ - name : Codegen
134+ uses : actions-rs/cargo@v1
135+ with :
136+ command : codegen
137+
138+ - name : No Diffs From Running Codegen
139+ run : |
140+ git diff --exit-code
141+
112142 rs-lints :
113143 name : Rust lints (fmt, check, cranky, tests, doc)
114144 runs-on : ubuntu-latest-16-cores
115145 container :
116- image : rerunio/ci_docker:0.9.1
146+ image : rerunio/ci_docker:0.10.0
117147 env :
118148 RUSTC_WRAPPER : " sccache"
119149 steps :
@@ -213,7 +243,7 @@ jobs:
213243 name : Check Rust web build (wasm32 + wasm-bindgen)
214244 runs-on : ubuntu-latest-16-cores
215245 container :
216- image : rerunio/ci_docker:0.9.1
246+ image : rerunio/ci_docker:0.10.0
217247 env :
218248 RUSTC_WRAPPER : " sccache"
219249 steps :
@@ -325,7 +355,7 @@ jobs:
325355 name : Cargo Deny
326356 runs-on : ubuntu-latest
327357 container :
328- image : rerunio/ci_docker:0.9.1
358+ image : rerunio/ci_docker:0.10.0
329359 steps :
330360 - uses : actions/checkout@v4
331361 with :
@@ -357,7 +387,7 @@ jobs:
357387 name : C++ tests
358388 runs-on : ubuntu-latest
359389 container :
360- image : rerunio/ci_docker:0.9.1
390+ image : rerunio/ci_docker:0.10.0
361391 env :
362392 RUSTC_WRAPPER : " sccache"
363393 steps :
0 commit comments