diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml deleted file mode 100644 index 09c2875287..0000000000 --- a/.github/workflows/release-plz.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Release Plz - -permissions: - pull-requests: write - contents: write - -on: - push: - tags: - - "v*.*.*" - -jobs: - release-plz: - name: Release-plz - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - - name: Run release-plz - uses: MarcoIeni/release-plz-action@v0.5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/crates/account_extras/build.rs b/crates/account_extras/build.rs index 238c609d89..77ffa17cbb 100644 --- a/crates/account_extras/build.rs +++ b/crates/account_extras/build.rs @@ -2,6 +2,7 @@ use rustc_version::{version_meta, Channel}; fn main() { println!("cargo::rustc-check-cfg=cfg(CHANNEL_NIGHTLY)"); + println!("cargo::rustc-check-cfg=cfg(NOT_CI)"); // Set cfg flags depending on release channel let channel = match version_meta().unwrap().channel { @@ -10,5 +11,10 @@ fn main() { Channel::Nightly => "CHANNEL_NIGHTLY", Channel::Dev => "CHANNEL_DEV", }; - println!("cargo:rustc-cfg={}", channel) + println!("cargo:rustc-cfg={}", channel); + if option_env!("CI").is_some() { + println!("cargo:rustc-cfg={}", "CI") + } else { + println!("cargo:rustc-cfg={}", "NOT_CI") + } } diff --git a/crates/account_extras/tests/clipboard.rs b/crates/account_extras/tests/clipboard.rs index cb5a524ae5..ecb6ec7703 100644 --- a/crates/account_extras/tests/clipboard.rs +++ b/crates/account_extras/tests/clipboard.rs @@ -1,6 +1,6 @@ use anyhow::Result; -#[cfg(feature = "clipboard")] +#[cfg(all(feature = "clipboard", NOT_CI))] #[tokio::test] async fn clipboard() -> Result<()> { // NOTE: we must run these tests in serial