Musl build

This commit is contained in:
Bodo Junglas 2020-02-15 14:01:30 +01:00
parent 6bc3431a25
commit d3516c7213
No known key found for this signature in database
GPG Key ID: A7C4E6F450E47C3A
5 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: untoldwind/rust-musl-action@master
- uses: actions/checkout@v2
- name: Check formatting
run: cargo fmt -- --check

View File

@ -8,6 +8,7 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: untoldwind/rust-musl-action@master
- uses: actions/checkout@master
- run: cargo login ${CRATES_IO_TOKEN}
env:
@ -22,6 +23,10 @@ jobs:
- name: Publish cli
run: cargo publish
working-directory: ./cli
- name: Build
run: cargo build --release
- name: Strip binary
run: strip target/x86_64-unknown-linux-musl/release/acari
- name: Create Release
id: create_release
uses: actions/create-release@v1

1
Cargo.lock generated
View File

@ -9,6 +9,7 @@ dependencies = [
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
"dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
"itertools 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
"openssl-probe 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"prettytable-rs 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.46 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -20,6 +20,7 @@ prettytable-rs = "0"
itertools = "0"
chrono = { version = "0.4", features = ["serde"] }
acari-lib = { version= "0.1.5", path = "../lib" }
openssl-probe = "0"
[[bin]]

View File

@ -8,6 +8,8 @@ use commands::OutputFormat;
use config::Config;
fn main() -> Result<(), Box<dyn std::error::Error>> {
openssl_probe::init_ssl_cert_env_vars();
let app = App::new("acari")
.version(crate_version!())
.about(crate_description!())