Skip to content

Commit bfe4660

Browse files
authored
Merge pull request #1534 from tnull/2022-06-check-release-build
Check release build in CI
2 parents 0fc2036 + c21593d commit bfe4660

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)