From 46b255ff2f995e636912bdd93b86f2b018a49c57 Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 11 May 2023 16:21:02 +0530 Subject: [PATCH] updates --- .config/config.toml | 2 ++ .github/workflows/release-packaging.yaml | 2 +- Cargo.toml | 3 --- 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 .config/config.toml diff --git a/.config/config.toml b/.config/config.toml new file mode 100644 index 0000000..1a02075 --- /dev/null +++ b/.config/config.toml @@ -0,0 +1,2 @@ +[target.x86_64-unknown-linux-musl] +rustflags = ["-C", "target-feature=+crt-static"] \ No newline at end of file diff --git a/.github/workflows/release-packaging.yaml b/.github/workflows/release-packaging.yaml index 1b79b71..661f89f 100644 --- a/.github/workflows/release-packaging.yaml +++ b/.github/workflows/release-packaging.yaml @@ -22,7 +22,7 @@ jobs: run: apk update && apk add musl-dev gpgme-dev openssl-dev openssl-libs-static libgit2-dev libgit2-static zlib-dev zlib-static - name: Release Build - run: cargo build --release + run: cargo build --release --target=x86_64-unknown-linux-musl env: OPENSSL_STATIC: "1" OPENSSL_LIB_DIR: /usr/lib diff --git a/Cargo.toml b/Cargo.toml index a413f43..6f24626 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,3 @@ lto = true opt-level = "z" codegen-units = 1 panic = "abort" - -[target.x86_64-unknown-linux-musl] -rustflags = ["-C", "target-feature=+crt-static"] \ No newline at end of file