Fix CI to work in the warpdotdev/warp repo. (#9226)
## Description A couple issues that needed fixing: * Using `--all-features` and `--all-targets` causes us to try to build the first-party binaries with embedded configuration, which isn't available from this repository. To unblock CI, we'll only run clippy on the default feature set for right now. * Similarly, testing compilation with release configuration was trying to build the `dev` channel; this switches that over to the `oss` channel.
This commit is contained in:
+13
-2
@@ -164,12 +164,23 @@ elif [[ $RELEASE_CHANNEL = "stable" ]]; then
|
||||
WARP_BIN="stable"
|
||||
BINARY_NAME="warp"
|
||||
APP_NAME="Warp"
|
||||
elif [[ $RELEASE_CHANNEL = "oss" ]]; then
|
||||
WARP_BIN="warp-oss"
|
||||
BINARY_NAME="warp-oss"
|
||||
APP_NAME="WarpOss"
|
||||
# The OSS channel does not ship Sentry, so drop the crash_reporting feature
|
||||
# (which would otherwise pull in the Sentry SDK as a dependency).
|
||||
FEATURES="release_bundle"
|
||||
fi
|
||||
|
||||
# Artifact-specific binary naming
|
||||
if [[ "$ARTIFACT" == "cli" ]]; then
|
||||
# For CLI artifacts, use oz instead of warp as the binary name
|
||||
BINARY_NAME="${BINARY_NAME/warp/oz}"
|
||||
# For CLI artifacts, use oz instead of warp as the binary name. The OSS
|
||||
# channel is an exception: its CLI command name is `warp-oss`, matching
|
||||
# `Channel::cli_command_name` in the Rust source.
|
||||
if [[ $RELEASE_CHANNEL != "oss" ]]; then
|
||||
BINARY_NAME="${BINARY_NAME/warp/oz}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Artifact-specific configuration
|
||||
|
||||
Reference in New Issue
Block a user