CI: Add NetBSD target (#180)

* Remove the `sys-info` crate

It offers much more features than we currently use.

Additionally, it was preventing me to cross-compile for NetBSD.

Since we were just using the `hostname()` function from the crate,
I went ahead and stole it.

* Add NetBSD target

* Fix FreeBSD clippy warnings
This commit is contained in:
Guilherme Silva
2022-11-16 20:05:20 -03:00
committed by Thomas Schönauer
parent 41e2321b93
commit 22ed1ef50a
6 changed files with 60 additions and 16 deletions

View File

@@ -13,13 +13,12 @@ use directories::BaseDirs;
use regex::Regex;
use serde::Deserialize;
use strum::{EnumIter, EnumString, EnumVariantNames, IntoEnumIterator};
use sys_info::hostname;
use tracing::debug;
use which_crate::which;
use crate::command::CommandExt;
use super::utils::editor;
use super::utils::{editor, hostname};
pub static EXAMPLE_CONFIG: &str = include_str!("../config.example.toml");