Skip to content

Commit c21593d

Browse files
committed
Check release build profile in CI
So far, CI did not check the code in the `release` build profile, which could result in some things not getting caught. To fix this, we now implement a new CI job that runs checks in the `release` profile. Switch to stable toolchain.
1 parent 0fc2036 commit c21593d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,27 @@ jobs:
275275
- name: For each commit, run cargo check (including in fuzz)
276276
run: ci/check-each-commit.sh upstream/main
277277

278+
check_release:
279+
runs-on: ubuntu-latest
280+
env:
281+
TOOLCHAIN: stable
282+
steps:
283+
- name: Checkout source code
284+
uses: actions/checkout@v3
285+
with:
286+
fetch-depth: 0
287+
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
288+
uses: actions-rs/toolchain@v1
289+
with:
290+
toolchain: ${{ env.TOOLCHAIN }}
291+
override: true
292+
profile: minimal
293+
- name: Run cargo check for release build.
294+
run: |
295+
cargo check --release
296+
cargo check --no-default-features --features=no-std --release
297+
cargo doc --release
298+
278299
fuzz:
279300
runs-on: ubuntu-latest
280301
env:

0 commit comments

Comments
 (0)