Skip to content

Commit

Permalink
CI: verify package against vendored copy of chrono-tz-build
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Apr 5, 2024
1 parent cac2f4a commit 31f11ed
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,19 @@ jobs:
- name: Verify cargo publish includes all files needed to build
run: |
cargo package --list -p chrono-tz
cargo publish --dry-run -p chrono-tz
cargo vendor
cargo package -p chrono-tz-build
cargo package -p chrono-tz --no-verify
for crate in target/package/*.crate
do
name=$(basename "$crate" .crate)
tar xvfz "$crate" -C vendor/
# Crates in the vendor directory require a checksum file, but it
# doesn't matter if it is empty.
echo '{"files":{}}' > vendor/$name/.cargo-checksum.json
done
cargo package --config "source.vendored-sources.directory = 'vendor'" \
--config "source.crates-io.replace-with = 'vendored-sources'"
lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 31f11ed

Please sign in to comment.