Skip to content

Commit fc5c0a9

Browse files
committed
ci: check if crate can be packaged
This way, we can early spot issues before they occur in unfortunate situations, as happened with [0]. [0] #1338
1 parent 32b04a5 commit fc5c0a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/rust.yml

+11
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ jobs:
121121
# library packages. Note that xtask isn't used or built here; since it's
122122
# just a dev tool we don't care about the MSRV for that package.
123123
run: cargo build --target x86_64-unknown-uefi -p uefi-test-runner
124+
# Tests that the published crates keep being package-able (thus, releasable).
125+
package:
126+
name: Package Crates
127+
runs-on: ubuntu-latest
128+
steps:
129+
- name: Checkout sources
130+
uses: actions/checkout@v4
131+
- uses: Swatinem/rust-cache@v2
132+
- name: Build
133+
run: cargo package -p uefi -p uefi-raw -p uefi-macros
134+
124135
# This job requires the nightly channel, but keep it as a separate job from
125136
# `nightly_channel` because it takes a while to run.
126137
build_feature_permutations:

0 commit comments

Comments
 (0)