diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68c014a..855ad77 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,8 +26,8 @@ jobs: os: macos-latest - target: x86_64-pc-windows-msvc os: windows-latest - - target: aarch64-unknown-linux-gnu - os: ubuntu-latest + # - target: aarch64-unknown-linux-gnu + # os: ubuntu-latest - target: aarch64-apple-darwin os: macos-latest # - target: aarch64-pc-windows-msvc diff --git a/src/main.rs b/src/main.rs index 0fbf8ea..adc6e31 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ mod cli; #[tokio::main] async fn main() { - dotenv::dotenv().ok(); + init_env(); skar::core::log::init(); @@ -14,3 +14,9 @@ async fn main() { } } } + +fn init_env() { + if cfg!(debug_assertions) { + dotenv::dotenv().ok(); + } +}