-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(s2n-quic): pin jobserver in more places and run cargo package in …
…CI (#2009) * fix(s2n-quic): pin jobserver in more places * add end of file newlines back * add detect-new-release and run cargo package only for already released, published crates * fix workflow * add exceptions for udeps * strip pwd * back to one line * add newlines and simplify published crates command * rename package step * combine into one step * update comment
- Loading branch information
1 parent
3cf2aa9
commit b91efe7
Showing
4 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
# | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
set -e | ||
|
||
LOCAL_VERSION=$(cargo metadata --no-deps --format-version 1 | jq --raw-output -c '.packages[] | select(.name == "s2n-quic").version') | ||
CRATES_IO_VERSION=$(cargo search "s2n-quic" --limit 1 | head -n 1 | cut -d'"' -f2) | ||
|
||
# Exits with 0 if the local version has not been published to crates.io yet, otherwise exits with 1 | ||
[[ "$LOCAL_VERSION" != "$CRATES_IO_VERSION" ]] |