Skip to content

Commit

Permalink
Run 'cargo package' in CI
Browse files Browse the repository at this point in the history
Should verify the .crate file sent to crates.io can at least be built, which should catch things like the docs.rs build failure, as discussed in imgui-rs#645 and imgui-rs#631
  • Loading branch information
dbr committed Jun 2, 2022
1 parent f58744e commit f7709c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ jobs:
- name: build documentation
run: cargo doc

# Test the .crate sent to crates.io can be built
- name: build .crate package (default)
run: cargo package
- name: build .crate package (docking)
run: cargo package --features docking
- name: build .crate package (freetype)
run: cargo package --features freetype
- name: build .crate package (all)
run: cargo package --features freetype,docking

# Run unreasonably slow tests under release, but only the crates that have
# them, and don't bother doing this on most platforms.
- run: cargo test -p imgui --release -- --ignored
Expand Down

0 comments on commit f7709c7

Please sign in to comment.