mirror of
https://github.com/gosticks/acari.git
synced 2025-10-16 11:45:37 +00:00
Musl build
This commit is contained in:
parent
6bc3431a25
commit
d3516c7213
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -4,6 +4,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: untoldwind/rust-musl-action@master
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: cargo fmt -- --check
|
run: cargo fmt -- --check
|
||||||
|
|||||||
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -8,6 +8,7 @@ jobs:
|
|||||||
name: Create Release
|
name: Create Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: untoldwind/rust-musl-action@master
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- run: cargo login ${CRATES_IO_TOKEN}
|
- run: cargo login ${CRATES_IO_TOKEN}
|
||||||
env:
|
env:
|
||||||
@ -22,6 +23,10 @@ jobs:
|
|||||||
- name: Publish cli
|
- name: Publish cli
|
||||||
run: cargo publish
|
run: cargo publish
|
||||||
working-directory: ./cli
|
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
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
|
|||||||
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -9,6 +9,7 @@ dependencies = [
|
|||||||
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"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)",
|
"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)",
|
"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 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)",
|
"serde_json 1.0.46 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|||||||
@ -20,6 +20,7 @@ prettytable-rs = "0"
|
|||||||
itertools = "0"
|
itertools = "0"
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
acari-lib = { version= "0.1.5", path = "../lib" }
|
acari-lib = { version= "0.1.5", path = "../lib" }
|
||||||
|
openssl-probe = "0"
|
||||||
|
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
|
|||||||
@ -8,6 +8,8 @@ use commands::OutputFormat;
|
|||||||
use config::Config;
|
use config::Config;
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
openssl_probe::init_ssl_cert_env_vars();
|
||||||
|
|
||||||
let app = App::new("acari")
|
let app = App::new("acari")
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.about(crate_description!())
|
.about(crate_description!())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user