From fff7f1d6702ff04e0a6427a25afb35961fba217a Mon Sep 17 00:00:00 2001 From: Sanskar Jethi Date: Mon, 28 Aug 2023 21:24:35 +0200 Subject: [PATCH] update ci --- .github/workflows/preview-deployments.yml | 5 ++++- Cargo.toml | 2 +- src/lib.rs | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview-deployments.yml b/.github/workflows/preview-deployments.yml index 7058570f8..bd582419a 100644 --- a/.github/workflows/preview-deployments.yml +++ b/.github/workflows/preview-deployments.yml @@ -3,6 +3,9 @@ name: Preview Release +env: + PY_ALL: 3.8 3.9 3.10 3.11 + on: push: branches: @@ -151,4 +154,4 @@ jobs: source venv/bin/activate pip install --upgrade pip setuptools wheel pip install --force-reinstall dist/robyn*.whl - cd ~ && python -c 'import robyn' + cd ~ && $PYTHON -c 'import robyn' diff --git a/Cargo.toml b/Cargo.toml index 887098e79..6975086bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ pythonize = "0.19.0" serde = "1.0.178" serde_json = "1.0.104" -[target.'cfg(not(any(all(target_arch="armv7"), all(target_arch="aarch64"))))'.dependencies] +[target.'cfg(not(any(all(target_arch="armv7", target_os="linux"), all(target_arch="aarch64", target_os="linux"))))'.dependencies] mimalloc = { version = "0.1.38", default-features = false, features = ["local_dynamic_tls"] } [features] diff --git a/src/lib.rs b/src/lib.rs index e4bf522c9..5b4f8f097 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,8 @@ +#[global_allocator] #[cfg(not(any( all(target_os = "linux", target_arch = "armv7"), all(target_os = "linux", target_arch = "aarch64") )))] -#[global_allocator] static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; mod executors;